kamailio dispatcher module in my environment uses only UDP I have not been able to find how I can configure kamailio dispatcher module to use TCP Would appreciate any help
Bijan
Hello,
On 9/26/13 6:30 PM, Karimi-Cherkandi, Bizhan wrote:
kamailio dispatcher module in my environment uses only UDP
I have not been able to find how I can configure kamailio dispatcher module to use TCP
Would appreciate any help
just add trasport=tcp parameter to the URI of the destination, like:
sip:1.2.3.4;transport=tcp
Cheers, Daniel
I am not using DB, so I am writing my dispatcher list file manually like below: 0 sip:10.233.20.171:5060;transport=udp A 1 bijan=zxy;td=1 0 sip:10.233.20.106:5060;transport=tcp A 2 bijan=xyz;td=1
But kamailio does not interpret flags and priority as I hoped. What would be correct syntax for writing flag and priority in the dispatcher list file?
entering fifo_cmd ds_list SET_NO:: 2 SET:: 1 URI:: sip:166.20.21.97:5060;transport=udp flag=A priority=0 attrs=A SET:: 0 URI:: sip:10.233.20.106:5060;transport=tcp flag=A priority=0 attrs=A URI:: sip:10.233.20.171:5060;transport=udp flag=A priority=0 attrs=A
I figured out the correct syntax: URI:: sip:10.233.20.106:5060;transport=tcp flag=A priority=2 attrs='bijan=xyz;td=1'
Now the remaining question is: can dispatcher pass the priority to kamailio, for instance over an AVP?
thanks
From: sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Karimi-Cherkandi, Bizhan Sent: Friday, September 27, 2013 10:58 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] dispatcher: what is the syntax for dispatcher list file
I am not using DB, so I am writing my dispatcher list file manually like below: 0 sip:10.233.20.171:5060;transport=udp A 1 bijan=zxy;td=1 0 sip:10.233.20.106:5060;transport=tcp A 2 bijan=xyz;td=1
But kamailio does not interpret flags and priority as I hoped. What would be correct syntax for writing flag and priority in the dispatcher list file?
entering fifo_cmd ds_list SET_NO:: 2 SET:: 1 URI:: sip:166.20.21.97:5060;transport=udp flag=A priority=0 attrs=A SET:: 0 URI:: sip:10.233.20.106:5060;transport=tcp flag=A priority=0 attrs=A URI:: sip:10.233.20.171:5060;transport=udp flag=A priority=0 attrs=A
Hello,
On 9/27/13 6:10 PM, Karimi-Cherkandi, Bizhan wrote:
I figured out the correct syntax:
URI:: sip:10.233.20.106:5060;transport=tcp flag=A priority=2 attrs='bijan=xyz;td=1'
Now the remaining question is: can dispatcher pass the priority to kamailio, for instance over an AVP?
no. Maybe you can write its value again in the attrs field. Or write a patch for that.
Cheers, Daniel
thanks
*From:*sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] *On Behalf Of *Karimi-Cherkandi, Bizhan *Sent:* Friday, September 27, 2013 10:58 AM *To:* Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] dispatcher: what is the syntax for dispatcher list file
I am not using DB, so I am writing my dispatcher list file manually like below:
0 sip:10.233.20.171:5060;transport=udp sip:10.233.20.171:5060;transport=udp A 1 bijan=zxy;td=1
0 sip:10.233.20.106:5060;transport=tcp sip:10.233.20.106:5060;transport=tcp A 2 bijan=xyz;td=1
But kamailio does not interpret flags and priority as I hoped. What would be correct syntax for writing flag and priority in the dispatcher list file?
entering fifo_cmd ds_list
SET_NO:: 2
SET:: 1
URI:: sip:166.20.21.97:5060;transport=udp
sip:166.20.21.97:5060;transport=udp flag=A priority=0 attrs=A
SET:: 0
URI:: sip:10.233.20.106:5060;transport=tcp
sip:10.233.20.106:5060;transport=tcp flag=A priority=0 attrs=A
URI:: sip:10.233.20.171:5060;transport=udp
sip:10.233.20.171:5060;transport=udp flag=A priority=0 attrs=A
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
I am currently using register_timer() to register one of ,my timers. Any idea how I would delete this timer later? I noticed that register_timer is new, the functions timer_del() and timer_free() are old and expect 'struct timer_ln *' which I do not have (this is not used in register_timer())
thanks
Hello,
a note: make a new email when having a new topic, because you get into old email discussion thread when you reply, even when you change the subject.
If you want to control better the timer, then you have to use lower functions, such as timer_init(), timer_add() ... see the content of register_timer().
That might get complex, an alternative can be have a global variable (in shared memory) that you can use to control of the timer function is executed or not, with an IF condition at the beginning of the timer function.
Cheers, Daniel
On 10/31/13 1:14 PM, Karimi-Cherkandi, Bizhan wrote:
I am currently using register_timer() to register one of ,my timers. Any idea how I would delete this timer later? I noticed that register_timer is new, the functions timer_del() and timer_free() are old and expect 'struct timer_ln *' which I do not have (this is not used in register_timer())
thanks
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