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 [2019/08/02 17:10] henningw [General] |
||
---|---|---|---|
Line 55: | Line 55: | ||
??? What is the license of Kamailio? | ??? What is the license of Kamailio? | ||
- | !!! Kamailio is an open source application licensed under GNU Public License version 2 (aka GPLv2). It can be used for free "as in beer". | + | !!! Kamailio is an open source application licensed under GNU Public License version 2 (aka GPLv2). It can be used for free "as in beer" |
Starting with end of 2008, contributions to core and several modules are done under BSD license. That means parts of it can be extracted and used under BSD license terms. But over all, when used as one application, | Starting with end of 2008, contributions to core and several modules are done under BSD license. That means parts of it can be extracted and used under BSD license terms. But over all, when used as one application, | ||
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? |