Re: [SR-Users] Diversion Header - relay messed up

2017-02-07 Thread Daniel-Constantin Mierla
There should be something in the config file that changes the $ru, kamailio internally doesn't do it if no function in config does it. To see what it is executed in config file, load debugger module and set its parameter cfgtrace to 1. Then in the syslog you should see what lines are executed. Yo

Re: [SR-Users] Diversion Header - relay messed up

2017-01-31 Thread Roman Dissauer
Just tried, but it doesn’t help. request_route { if $di == $null { xlog("L_INFO","[$fU@$si:$sp]{$rm} Incomeing Request...\n"); } else { xlog("L_INFO","[$fU@$si:$sp]{$rm} Incomeing Request... with Diversion Header: $di, Request URI: $ru\n");

Re: [SR-Users] Diversion Header - relay messed up

2017-01-30 Thread Daniel Tryba
On Sun, Jan 29, 2017 at 06:42:23PM +0100, Roman Dissauer wrote: > When I get an INVITE with Diversion Header the Request is forwarded > without Diversion Header and the Request User is taken from Diversion > User. Problem is that on the Destination Host I cannot get original > Request User what is

Re: [SR-Users] Diversion header authentication

2013-04-10 Thread Morten Isaksen
Hi, Try to give is_user_in() the whole URI as in sip:username@domain or just username@domain. I am not sure what format it expects. /Morten On Wed, Apr 10, 2013 at 12:03 PM, phillman25 wrote: > > Thank you Daniel and Morten for your assistance and prompt reply. > > To use the tobody transform

Re: [SR-Users] Diversion header authentication

2013-04-09 Thread Daniel-Constantin Mierla
Hello, just adding that the tobody transformation could be handy to extract the user or uri part of a Diversion header, not to fight with subst expressions: - http://www.kamailio.org/wiki/cookbooks/devel/transformations#to-body_transformations Cheers, Daniel On 4/9/13 3:16 PM, Morten Isaks

Re: [SR-Users] Diversion header authentication

2013-04-09 Thread Morten Isaksen
Hi, I have not tested this, but try: $avp(s:divhdr) = $(hdr(Diversion)[$var(i)]); avp_subst("$avp(s:divhdr)", "/.*sip:\+45(.*)(@.*)/\1/"); # Extract number between +45 and @ if (is_user_in("$avp(s:divhdr)", "1") { ... } Please note that there can be more than one Diverseion header. In that case

Re: [SR-Users] Diversion header

2011-04-16 Thread Olle E. Johansson
> > > >> I can theoretically see a need for it both in NAT situations and IPv6. > >> Diversion is deprecated. > > No, it became RFC 5806 past year: > > http://tools.ietf.org/html/rfc5806 Category: HIstoric Because it took so much time between the Diversion draft and the SIP-history RFC, ev