tutorials:faq:main
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:faq:main [2021/04/03 06:27] – miconda | tutorials:faq:main [2021/08/27 06:11] (current) – [SIP Message Processing] miconda | ||
---|---|---|---|
Line 227: | Line 227: | ||
The examples above were with assignments to $fU (can be other vars as well, such as $fu, $tU, $tu, ..), but it is the same behaviour when using functions such as uac_replace_from() or uac_replace_to(). | The examples above were with assignments to $fU (can be other vars as well, such as $fu, $tU, $tu, ..), but it is the same behaviour when using functions such as uac_replace_from() or uac_replace_to(). | ||
+ | |||
+ | ??? Why body or other parts of the SIP message appear multiple times? | ||
+ | |||
+ | !!! It is practically the same reason as for multiple From/To parts. | ||
+ | |||
+ | The configuration file does an operation that changes parts in the headers or body many times. For example, if the body has two concatenated IP addresses for media stream, then likely the rtpproxy function is used twice, or, if the SDP appears two time, then the rtpengine function is used two times. | ||
+ | |||
+ | If the update has to be done many times, use **msg_apply_changes()** in between, otherwise refactor the config to perform the operation only once (e.g., the RTP relaying functions should be used in a branch_route block). | ||
??? How to set different header values for each destination of a SIP request? | ??? How to set different header values for each destination of a SIP request? | ||
Line 360: | Line 368: | ||
!!! No, //however// Kamailio can be configured to proxy media if needed. | !!! No, //however// Kamailio can be configured to proxy media if needed. | ||
- | * [[http:// | + | * [[http:// |
??? What codecs are supported by Kamailio? | ??? What codecs are supported by Kamailio? | ||
Line 633: | Line 641: | ||
} else { | } else { | ||
# it goes here | # it goes here | ||
+ | } | ||
+ | ... | ||
+ | if (function_returns_four() && $rc ieq 6 ) { | ||
+ | # it doesn' | ||
+ | } else if ($rc ieq 4) { | ||
+ | # it goes here | ||
+ | } else { | ||
+ | # it doesn' | ||
} | } | ||
</ | </ |
tutorials/faq/main.1617431237.txt.gz · Last modified: 2021/04/03 06:27 by miconda