This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorials:faq:main [2018/05/08 08:23] miconda [General] |
tutorials:faq:main [2018/05/08 08:31] miconda [SIP Message Processing] |
||
---|---|---|---|
Line 167: | Line 167: | ||
* without applying changes | * without applying changes | ||
- | < | + | < |
append_hf(" | append_hf(" | ||
Line 179: | Line 179: | ||
* with applying changes | * with applying changes | ||
- | < | + | < |
append_hf(" | append_hf(" | ||
Line 203: | Line 203: | ||
* add X-Peer-ID header when sending somewhere else | * add X-Peer-ID header when sending somewhere else | ||
- | < | + | < |
request_route { | request_route { | ||
... | ... | ||
Line 234: | Line 234: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | 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(), | ||
+ | |||
+ | <code c> | ||
+ | request_route { | ||
+ | ... | ||
+ | uac_replace_from(" | ||
+ | uac_replace_from(" | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Results in From header having the URI: **sip: | ||
+ | |||
??? 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? |