User Tools

Site Tools


tutorials:faq:main

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorials:faq:main [2018/05/08 06:23] – [General] micondatutorials:faq:main [2018/05/08 06:30] – [SIP Message Processing] miconda
Line 234: Line 234:
 } }
 </code> </code>
 +
 +Very important is also to be aware that doing same operation many times in request_route is not overwriting the previous value, but combines them. For example, if you do two times uac_replace_from(), the From header can become corrupt. Like:
 +
 +<code c>
 +request_route {
 +  ...
 +  uac_replace_from("sip:test1@kamailio.org");
 +  uac_replace_from("sip:test2@kamailio.org");
 +  ...
 +}
 +</code>
 +
 +Results in From header having the URI: "sip:test1@kamailio.orgsip:test2@kamailio.org". Again, use branch_route to do the operations if you need different From header for outgoing branches.
 +
  
 ??? How to remove a single header field when a header appears multiple times? ??? How to remove a single header field when a header appears multiple times?
tutorials/faq/main.txt · Last modified: 2021/08/27 06:11 by miconda

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki