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
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");
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
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
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
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
>
>
>
>> 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