[SR-Users] failed to find append_branch

2017-03-22 Thread Anuradha Selvarajan
Hello, I am a new user to kamailio. I am trying to use the fork.cfg to send sip registration to 2 destination. I get the following error but I have added loadmodule tm.so, why am I still getting this error? Mar 22 15:53:48 emps116 kamailio[14065]: ERROR: [cfg.y:3295]: yyparse(): cfg. parser:

Re: [SR-Users] getting source IP from Contact header

2017-03-22 Thread Alex Balashov
Ali, A Contact header is a "name-address pair", so you first need to fetch the URI from it before you can fetch that URI's host portion. All of that can be done using Kamailio transformations: http://www.kamailio.org/wiki/cookbooks/5.0.x/transformations To accomplish what you'd want, you'd use:

Re: [SR-Users] getting source IP from Contact header

2017-03-22 Thread Kordován Szabolcs
Hello, You can use {uri.host} transformation. Regards, Szabolcs 2017-03-22 18:23 GMT+01:00 Ali Taher : > Hello everyone, > > > > I’m trying to get the host part from the contact header in the sip invite

[SR-Users] getting source IP from Contact header

2017-03-22 Thread Ali Taher
Hello everyone, I'm trying to get the host part from the contact header in the sip invite packet. Following is the contact header format: Contact: What I want as result is 192.168.1.1 I searched among the pseudovairables and found $ct variable

[SR-Users] append_rpid_hf("$fU","; party=calling; id-type=subscriber; privacy=off; screen=yes");

2017-03-22 Thread Olivier Taylor
Hello, using Kamailio 4.4, append_rpid_hf("$fU",";party=calling;id-type=subscriber;privacy=off;screen=yes"); on the PSTN route doesn't append the rpid header on the INVITE As well as append_hf("P-hint: outbound\r\n"); on the SIPOUT route doesn't work What do I miss? Best regards,

[SR-Users] kamcli doesn't function

2017-03-22 Thread Marko Tirs
Hello all, I can't find any answer why my kamcli doesn't function. I'm using Kamailio 5.0.0 at the Debian Jessy 8.7 and it functions well. # kamctl ul show functions well but when I use kamcli I get error: # kamcli ul show 13(7452) ERROR: jsonrpcs [jsonrpcs_sock.c:542]:

Re: [SR-Users] looks like dp_translate with pvs in repl_exp is badly broken

2017-03-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > are you using dialog plan with match_dynamic set to 1 or the default > 0? no dynamic_match setting, i.e., default 0. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list

Re: [SR-Users] looks like dp_translate with pvs in repl_exp is badly broken

2017-03-22 Thread Daniel-Constantin Mierla
Hello, are you using dialog plan with match_dynamic set to 1 or the default 0? https://www.kamailio.org/docs/modules/stable/modules/dialplan.html#dialplan.p.match_dynamic Cheers, Daniel On Wed, Mar 22, 2017 at 10:23 AM, Juha Heinanen wrote: > Juha Heinanen writes: > > > when

[SR-Users] looks like dp_translate with pvs in repl_exp is badly broken

2017-03-22 Thread Juha Heinanen
Juha Heinanen writes: > when match_exp of dp 100 is ^#test and repl_exp is sip:$rU@$rd this code: > > xlog("L_INFO", "** ru = $ru\n"); > dp_translate(100, "$rU/$var(res)"); > xlog("L_INFO", "** res = $var(res)\n"); > > produces: > > Mar 22 08:21:17 lohi

[SR-Users] looks like dp_translate with pvs in repl_exp is badly broken

2017-03-22 Thread Juha Heinanen
when match_exp of dp 100 is ^#test and repl_exp is sip:$rU@$rd this code: xlog("L_INFO", "** ru = $ru\n"); dp_translate(100, "$rU/$var(res)"); xlog("L_INFO", "** res = $var(res)\n"); produces: Mar 22 08:21:17 lohi /usr/bin/sip-proxy[7543]: INFO: ** ru =