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/