[Kamailio-Users] Problems with Sip Redirect Client
Hello... I have a SIP Redirect Serve with a kamailio and it works fine with others system(NexTone, Asterisk, etc), but I have a problem with a SIP redirect client with Kamailio. I am using http://kamailio.org/docs/modules/1.5.x/uac_redirect.html to try manipulate the 3xx message. I would like to send one destiny at a time, but the get_redirects("10:2","redirect") send only 2 contacts and at teh same time. I get from my SIP Redirect Server this message: SIP/2.0 301 Moved Permanently..Via: SIP/2.0/UDP 2XX.XX.XXX.XXX:5080;branch=z9hG4bK633e.a3e32ff2.0;rport=5080;received=2XX.XX.XXX.XXX..Via : SIP/2.0/UDP 192.168.0.133:7191;received=201.XX.X.XXX;branch=z9hG4bK-d87543-254f7f3a1058e232-1--d87543-;rport=7191..To: <sip:05433330000 @2XX.XX.XXX.XXX:5080>;tag=609b19d62bd6886602a6c902875525b0.c8b2..From: "1938"<sip:1938@2XX.XX.XXX.XXX:5080>;tag=187fec3c..Call-ID: 4959bc 623e556571@ZGVzZW4tcGMtMDguZ292b2lwLmNvbS5icg....CSeq: 1 INVITE..Contact: sip:55341#5433330000@192.168.0.2, q=1, sip:123#5433330000@1 92.168.0.3, q=2, sip:55341#5433330000@192.168.0.4, q=3, sip:55341#5433330000@192.168.0.5, sip:55341#5433330000@192.168.0.6, sip:553 41#5433330000@192.168.0.7, sip:55341#5433330000@192.168.0.8, sip:55341#5433330000@192.168.0.9, sip:55341#5433330000@192.168.0.10. .Server: Test Redirect..Content-Length: 0.... How I can configure to send fist to sip:55341#5433330000@192.168.0.10 and after if I not sucess it sends to sip:55341#5433330000@192.168.0.9, etc...? Thanks... ____________________________________________________________________________________ Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
Hello, On 12/30/09 2:13 PM, Daniel Cardoso Alves wrote:
Hello...
I have a SIP Redirect Serve with a kamailio and it works fine with others system(NexTone, Asterisk, etc), but I have a problem with a SIP redirect client with Kamailio.
I am using http://kamailio.org/docs/modules/1.5.x/uac_redirect.html to try manipulate the 3xx message.
I would like to send one destiny at a time, but the get_redirects("10:2","redirect") send only 2 contacts and at teh same time.
I get from my SIP Redirect Server this message:
SIP/2.0 301 Moved Permanently..Via: SIP/2.0/UDP 2XX.XX.XXX.XXX:5080;branch=z9hG4bK633e.a3e32ff2.0;rport=5080;received=2XX.XX.XXX.XXX..Via : SIP/2.0/UDP 192.168.0.133:7191;received=201.XX.X.XXX;branch=z9hG4bK-d87543-254f7f3a1058e232-1--d87543-;rport=7191..To: <sip:05433330000 @2XX.XX.XXX.XXX:5080>;tag=609b19d62bd6886602a6c902875525b0.c8b2..From: "1938"<sip:1938@2XX.XX.XXX.XXX:5080>;tag=187fec3c..Call-ID: 4959bc 623e556571@ZGVzZW4tcGMtMDguZ292b2lwLmNvbS5icg....CSeq: 1 INVITE..Contact: sip:55341#5433330000@192.168.0.2, q=1, sip:123#5433330000@1 92.168.0.3, q=2, sip:55341#5433330000@192.168.0.4, q=3, sip:55341#5433330000@192.168.0.5, sip:55341#5433330000@192.168.0.6, sip:553 41#5433330000@192.168.0.7, sip:55341#5433330000@192.168.0.8, sip:55341#5433330000@192.168.0.9, sip:55341#5433330000@192.168.0.10. .Server: Test Redirect..Content-Length: 0....
How I can configure to send fist to sip:55341#5433330000@192.168.0..10 and after if I not sucess it sends to sip:55341#5433330000@192.168.0.9, etc...?
After get_redirects() try to use t_load_contacts() and t_next_contacts(): http://kamailio.org/docs/modules/1.5.x/tm.html#id2531755 Haven't tried myself but should be the way to go. Cheers, Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/
Daniel-Constantin Mierla writes:
How I can configure to send fist to sip:55341#5433330000@192.168.0..10 and after if I not sucess it sends to sip:55341#5433330000@192.168.0.9, etc...?
After get_redirects() try to use t_load_contacts() and t_next_contacts(): http://kamailio.org/docs/modules/1.5.x/tm.html#id2531755
Haven't tried myself but should be the way to go.
it should achieve sequential forwarding IF the contacts have different q values. -- juha
On 12/30/09 2:45 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
How I can configure to send fist to sip:55341#5433330000@192.168.0..10 and after if I not sucess it sends to sip:55341#5433330000@192.168.0.9, etc...?
After get_redirects() try to use t_load_contacts() and t_next_contacts(): http://kamailio.org/docs/modules/1.5.x/tm.html#id2531755
Haven't tried myself but should be the way to go.
it should achieve sequential forwarding IF the contacts have different q values.
first email has an example, with Contact header holding multiple contacts, some with different q values -- not sure if is real or just for sampling. Is q value allowed to be any number or just floating point less or equal 1? The example has greater q values. Cheers, Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/
Daniel-Constantin Mierla writes:
Is q value allowed to be any number or just floating point less or equal 1? The example has greater q values.
q value is a floating point number and definitely not bigger values than 1.0. there may also be a limit in rfc3261 syntax on how many decimal digits it may have. -- juha
On 12/30/09 4:42 PM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
Is q value allowed to be any number or just floating point less or equal 1? The example has greater q values.
q value is a floating point number and definitely not bigger values than 1.0. there may also be a limit in rfc3261 syntax on how many decimal digits it may have.
what I knew as well -- found it in 3261 grammar: qvalue = ( "0" [ "." 0*3DIGIT ] ) / ( "1" [ "." 0*3("0") ] So the 301 reply in the first email is wrong. Cheers, Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/
Thanks Mierla and Juha.... It works fine... --- Em qua, 30/12/09, Daniel-Constantin Mierla <miconda@gmail.com> escreveu: De: Daniel-Constantin Mierla <miconda@gmail.com> Assunto: Re: [Kamailio-Users] Problems with Sip Redirect Client Para: "Juha Heinanen" <jh@tutpro.com> Cc: users@lists.kamailio.org Data: Quarta-feira, 30 de Dezembro de 2009, 13:50 On 12/30/09 4:42 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes:
Is q value allowed to be any number or just floating point less or equal 1? The example has greater q values.
q value is a floating point number and definitely not bigger values than 1.0. there may also be a limit in rfc3261 syntax on how many decimal digits it may have. what I knew as well -- found it in 3261 grammar: qvalue = ( "0" [ "." 0*3DIGIT ] ) / ( "1" [ "." 0*3("0") ] So the 301 reply in the first email is wrong. Cheers, Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/ -----Anexo incorporado----- _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users ____________________________________________________________________________________ Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
participants (3)
-
Daniel Cardoso Alves -
Daniel-Constantin Mierla -
jh@tutpro.com