Hello, operations over the headers (and body of message) are not applied immediately -- see the wiki on kamailio.org, look at FAQ.
You have to use msg_apply_changes(), or, better, do operations in branch_route if you need to re-route to another destination with different From/To. For a branch, you can keep the value in an avp in case you need to go through multiple variants before you decide which one is final, and then change only to the final value. Cheers, Daniel On 18/01/16 10:24, ycaner wrote: > Hello; > UAC module is more useful Because when change From or To uri Some > replies are changed so Uac module can restore it so there is no > problem for SBC. > i had a big problem about it and UAC module was solved it. > > Hello Daniel. > > There is a problem about From uri changes. When 2 times changes it > in a transaction , it appends fromuri new fromuri not override it. > Only 1 time it can be changed. > > Cheers. > > 18.01.2016 11:08 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] > yazdı: >> Hello, >> >> also the 'tobody' and 'params' transformations can be handy for getting >> the proper values from the header body: >> >> https://www.kamailio.org/wiki/cookbooks/4.3.x/transformations#tobodyparams >> >> Cheers, >> Daniel >> >> On 18/01/16 09:28, ycaner wrote: >> >> > Hello; >> > you can use "$hdr()" to get header. Here is short tuts for it >> > >> > https://www.osso.nl/blog/callerid-in-rpid-opensips-kamailio/ >> > >> > >> > >> > -- >> > View this message in context: >> http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp144664p144668.html >> > Sent from the Users mailing list archive at Nabble.com. >> > >> > _______________________________________________ >> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing >> list >> > [hidden email] </user/SendEmail.jtp?type=node&node=144677&i=0> >> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> -- >> Daniel-Constantin Mierla >> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - >> http://www.linkedin.com/in/miconda >> Book: SIP Routing With Kamailio - http://www.asipto.com >> http://miconda.eu >> >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >> [hidden email] </user/SendEmail.jtp?type=node&node=144677&i=1> >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> >> ------------------------------------------------------------------------ >> If you reply to this email, your message will be added to the >> discussion below: >> http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp144664p144677.html >> >> To unsubscribe from Get value of RPID privacy param, click here. >> NAML >> <http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > -- > <http://www.netgsm.com.tr> > > ------------------------------------------------------------------------ > View this message in context: Re: Get value of RPID privacy param > <http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp144664p144681.html> > Sent from the Users mailing list archive > <http://sip-router.1086192.n5.nabble.com/Users-f3.html> at Nabble.com. > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com http://miconda.eu
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users