Hi,
I have a problem with "Route" header in my proxy server. Incoming
invite has "Route" header with the IP of the proxy. So, the proxied
invite from proxy server is looping back to the proxy server.
I believe that "Route" cannot be removed or deleted because it is one
of system header. Is there any way to avoid this loop?
Thanks
Young
Hi all
I was checking for an operator not matching regular expression. Acording to the
doc we have =~ and !~ for matching and not matching.
http://www.kamailio.org/wiki/cookbooks/3.3.x/core#script_statements
I tried this one:
if(!is_domain_local("$rd") && $rd !~ "^.+\.local$")
Resulting on these errors:
root@sp1:~# /etc/init.d/kamailio-proxy restart
Not executing command for kamailio-proxy: invalid configuration file!
-e
0(1813) : <core> [cfg.y:3549]: parse error in config file /etc/kamailio/proxy/proxy.cfg, line 1067, column 36: syntax error
0(1813) : <core> [cfg.y:3549]: parse error in config file /etc/kamailio/proxy/proxy.cfg, line 1067, column 52: bad expression
0(1813) : <core> [cfg.y:3549]: parse error in config file /etc/kamailio/proxy/proxy.cfg, line 1067, column 52: bad command
0(1813) : <core> [cfg.y:3549]: parse error in config file /etc/kamailio/proxy/proxy.cfg, line 1068, column 2: bad command
0(1813) : <core> [cfg.y:3546]: parse error in config file /etc/kamailio/proxy/proxy.cfg, line 1083, column 2-21: syntax error
0(1813) : <core> [cfg.y:3546]: parse error in config file /etc/kamailio/proxy/proxy.cfg, line 1083, column 2-21:
ERROR: bad config file (6 errors)
while this one:
if(!(is_domain_local("$rd") || $rd =~ "^.+\.local$"))
Works perfectly fine.
Am I wrong with the usage of !~ operator?
cheers,
Jon
Hello,
We noticed an issue with a bunch of stale entries in the
mysql location table recently - all for the same user. It turns out that if
you install linphone 2.0.2 on an iOS device (other versions/platforms might
also be affected) with the transport mode set to TCP and the 'Push
Notification' feature enabled, the client generates very long contact (258+
character) headers. The contact column in the location table is
varchar(255), anything longer than this automatically gets truncated upon
insert. When the entry later expires and usrloc tries to remove it, it
generates a delete query that matches on the entire contact value and not
the truncated version. This causes the delete query to fail and the usrloc
record gets left behind in the location table.
The (truncated) contact header value from the database:
sip:22448462@98.248.37.244:52008;transport=tcp;app-id=org.linphone.phone.pro
d;pn-type=apple;pn-tok=AA31DC9642E76E7D7DA8A0E419B210E1A00E8DF43A7A77C8CD295
5291E1BAC85;pn-msg-str=IM_MSG;pn-call-str=IC_MSG;pn-call-snd=ring.caf;pn-msg
-snd=msg.caf;line=932257155
The failed delete query:.
delete from location where username='XXXXXXXX' AND
contact='sip:XXXXXXXX@11.22.333.
44:52000;transport=tcp;app-id=org.linphone.phone.prod;pn-type=apple;pn-tok=A
A31DC9642E76E7D7DA8A0E419B210E1A00E8DF43A7A77C8CD2955291E1BAC85;pn-msg-str=I
M_MSG;pn-call-str=IC_MSG;pn-call-snd=ring.caf;pn-msg-snd=msg.caf;line=932257
155f64767' AND callid='1962857815';
What do you all think the best solution here is? My intuition is to simply
increase the size of this column. If this is the right approach then it
probably also makes sense to update the .sql file for new installs.
Thoughts?
Thank you,
Ross
Dear List
I am currently using the group module to authenticate inbound calls using
the From header using the below code:
if (!is_user_in("From", "1")) {
sl_send_reply("403", "NOT ALLOWED");
exit;
};
};
I want to now authenticate the Diversion header, when the call is diverted,
the same way as above using the group module how could i proceed with this?
thanking you in advance
Phillip
thank you int transformation worked for the dispatcher module now i can
define gw dynamically.
much appretiate your sugestion.
On Tue, Apr 9, 2013 at 5:59 AM, <sr-users-request(a)lists.sip-router.org>wrote:
> Send sr-users mailing list submissions to
> sr-users(a)lists.sip-router.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> or, via email, send a message with subject or body 'help' to
> sr-users-request(a)lists.sip-router.org
>
> You can reach the person managing the list at
> sr-users-owner(a)lists.sip-router.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sr-users digest..."
>
>
> Today's Topics:
>
> 1. Help with dispatcher module (julian arsanches)
> 2. how to configure presence module with websocket (???? ?????)
> 3. Re: Help with dispatcher module (Javi Gallart)
> 4. Re: path uri problem (Andrew Pogrebennyk)
> 5. Diversion header authentication (phillman25)
> 6. Re: path uri problem (Juha Heinanen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 8 Apr 2013 18:17:36 -0400
> From: julian arsanches <guandulito.com(a)gmail.com>
> Subject: [SR-Users] Help with dispatcher module
> To: sr-users(a)lists.sip-router.org
> Message-ID:
> <CAG0Kfxv6-TV4Ghep=
> Wj0BNVYXH0TLR6FW281fQA9WsOKGsK1Kw(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> thanks for all support from the forum before hand.
> i am having an issue with my setup, i am trying to make the dispatcher
> dynamic by asigning a value from a variable, that variable is define on my
> dispatcher.lst but i am getting an error, if anyone can help thanks.
>
> my config on the relay route
> first i strip the prefix from my dial string, and set variable y with that
> code, then i strip it and dial it. but it does not work.
> again thanks if anyone can helpme.
>
>
>
> xlog(" anrtes de strip >> el r-uri($ru)>($ru{s.substr,0,3})\n");
>
>
> $var(x) = $ru; #>> set varx as an string
>
> $var(y)=$(var(x){s.substr,4,3}); #>>>>strip the first 3 digits to find my
> route
>
>
>
> xlog("dsroute $var(y) my test ($ru)\n"); #check for variables loaded
>
> strip(3); # strip the prefix to route to destinatio
>
> xlog("despues de strip time [$Tf] method ($rm) r-uri ($ru) 2nd via el code
> ($var(y)\n"); #check for loaded variables after strip
>
>
> ds_select_dst("$var(y)", "4");#>>carrer dynamic don't work variable is
> load propperly but i get the following error
> *
> *
> *##Apr 8 17:59:32 ip-10-0-1-206 /usr/sbin/kamailio[8975]: ERROR: <script>:
> despues de strip time [Mon Apr 8 17:59:32 2013] method (ACK) r-uri
> (sip:54.236.192.19) 2nd via el code (54). >>> i see a the right code in the
> variable*
> *##Apr 8 17:59:32 ip-10-0-1-206 /usr/sbin/kamailio[8975]: ERROR: <core>
> [sr_module.c:1726]: Could not convert PV to int *
>
>
> #ds_select_dst("097", "4");#statically define works
>
> xlog("print el destination y el $var(y) ($du)>>($td)>>> ($ru)\n");
>
> if (!t_relay_to_udp()) {
>
> sl_reply_error();
> };
>
>
> exit;
> }
>
>
>
> dispatcher.lst
>
> #lineformat
> #setit(integer)destination(sipuri)flags(integer,optional)
>
>
> #Asterisks
>
> 007 sip:1.1.1.1:5060 ##route 1
> 024 sip:2.2.2.2:5060 ##route 2
> 100 sip:1.1.1.100:5060 ##route 100
> 103 sip:1.1.1.103:5060 ###route 103
>
thanks for all support from the forum before hand.
i am having an issue with my setup, i am trying to make the dispatcher
dynamic by asigning a value from a variable, that variable is define on my
dispatcher.lst but i am getting an error, if anyone can help thanks.
my config on the relay route
first i strip the prefix from my dial string, and set variable y with that
code, then i strip it and dial it. but it does not work.
again thanks if anyone can helpme.
xlog(" anrtes de strip >> el r-uri($ru)>($ru{s.substr,0,3})\n");
$var(x) = $ru; #>> set varx as an string
$var(y)=$(var(x){s.substr,4,3}); #>>>>strip the first 3 digits to find my
route
xlog("dsroute $var(y) my test ($ru)\n"); #check for variables loaded
strip(3); # strip the prefix to route to destinatio
xlog("despues de strip time [$Tf] method ($rm) r-uri ($ru) 2nd via el code
($var(y)\n"); #check for loaded variables after strip
ds_select_dst("$var(y)", "4");#>>carrer dynamic don't work variable is
load propperly but i get the following error
*
*
*##Apr 8 17:59:32 ip-10-0-1-206 /usr/sbin/kamailio[8975]: ERROR: <script>:
despues de strip time [Mon Apr 8 17:59:32 2013] method (ACK) r-uri
(sip:54.236.192.19) 2nd via el code (54). >>> i see a the right code in the
variable*
*##Apr 8 17:59:32 ip-10-0-1-206 /usr/sbin/kamailio[8975]: ERROR: <core>
[sr_module.c:1726]: Could not convert PV to int *
#ds_select_dst("097", "4");#statically define works
xlog("print el destination y el $var(y) ($du)>>($td)>>> ($ru)\n");
if (!t_relay_to_udp()) {
sl_reply_error();
};
exit;
}
dispatcher.lst
#lineformat
#setit(integer)destination(sipuri)flags(integer,optional)
#Asterisks
007 sip:1.1.1.1:5060 ##route 1
024 sip:2.2.2.2:5060 ##route 2
100 sip:1.1.1.100:5060 ##route 100
103 sip:1.1.1.103:5060 ###route 103
hello. I am tring to SUBSCRIBE for presence status of a user on my kamailio
server using the sipMl5 (over websockets) but kamailio failes. (more
exactly the handle_subscribe failes.)
I was told previusly by peter dunkly that it is not a bug, just a
configuration problem. I am quoting his answer:
"This is a configuration problem not a bug in the software.
SUBSCRIBEs are dialog forming requests and NOTIFYs (in this scenario) are
in-dialog requests. As such you need to use force_rport(),
add_contact_alias(), and handle_ruri_alias() with presence dialogs in the
same way you do with media session dialogs."
How can i acheve this ?
thanks in advance...
in my test, proxy p2 receives initial request from proxy p1, that has
this kind of R-URI and Route header:
INVITE sip:47089231@192.98.102.10:41073;transport=tcp SIP/2.0.
Route: <sip:192.98.102.20:5070;transport=tcp;lr;received='sip:192.98.102.10:49127;transport=tcp'>
route header is result of calling lookup in p1 on record:
AOR:: jh(a)test.fi
Contact:: sip:47089231@192.98.102.10:41073;transport=tcp Q=0.5
Expires:: 114
Callid:: 0ed240f3-dc79-4d65-93ef-3e92d178a892
Cseq:: 12
User-agent:: sipsimple 0.34.0
Received:: sip:192.98.102.10:49127;transport=tcp
Path:: <sip:192.98.102.20:5070;transport=tcp;lr;received='sip:192.98.102.10:49127;transport=tcp'>
i would expect that loose_route() would set $du to received parameter
value, but it does not, because i get to syslog:
Apr 8 12:44:54 wheezy1 /usr/sbin/sip-proxy[5723]: INFO: Trying to relay to du <<null>> or ru <sip:47089231@192.98.102.10:41073;transport=tcp>
how can i tell p2 to set $du to received uri? do i need to add another
route header in p1 that contains received uri?
-- juha