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 revision Previous revision
Next revision
Previous revision
tutorials:faq:main [2021/04/03 08:27]
miconda
tutorials:faq:main [2021/08/27 08:11] (current)
miconda [SIP Message Processing]
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://www.kamailio.org/docs/modules/stable/|See rtpproxy, iptrtpproxyand mediaproxy]]+  * [[http://www.kamailio.org/docs/modules/stable/|See rtpengine, rtpproxy, lrkproxyor mediaproxy]]
  
 ??? 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't go here
 +} else if ($rc ieq 4) {
 +   # it goes here
 +} else {
 +   # it doesn't go here
 } }
 </code> </code>
tutorials/faq/main.1617431237.txt.gz ยท Last modified: 2021/04/03 08:27 by miconda