<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
On 12/30/09 2:13 PM, Daniel Cardoso Alves wrote:
<blockquote cite="mid:590947.90597.qm@web65611.mail.ac4.yahoo.com"
 type="cite">
  <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td
 style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;"
 valign="top">Hello...<br>
        <br>
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.<br>
        <br>
I am using <a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/1.5.x/uac_redirect.html">http://kamailio.org/docs/modules/1.5.x/uac_redirect.html</a> to
try manipulate the 3xx message.<br>
        <br>
I would like to send one destiny at a time, but the<span
 style="font-family: monospace;"></span> <span
 style="font-weight: bold;">get_redirects("10:2","redirect")</span>
send only 2 contacts and at teh same time.<br>
        <br>
        <br>
I get from my SIP Redirect Server this message:<br>
        <br>
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<br>
&nbsp; : SIP/2.0/UDP
192.168.0.133:7191;received=201.XX.X.XXX;branch=z9hG4bK-d87543-254f7f3a1058e232-1--d87543-;rport=7191..To:

&lt;<a class="moz-txt-link-freetext" href="sip:05433330000">sip:05433330000</a><br>
&nbsp;@2XX.XX.XXX.XXX:5080&gt;;tag=609b19d62bd6886602a6c902875525b0.c8b2..From:
"1938"<a class="moz-txt-link-rfc2396E" href="sip:1938@2XX.XX.XXX.XXX:5080">&lt;sip:1938@2XX.XX.XXX.XXX:5080&gt;</a>;tag=187fec3c..Call-ID: 4959bc<br>
&nbsp; <a class="moz-txt-link-abbreviated" href="mailto:623e556571@ZGVzZW4tcGMtMDguZ292b2lwLmNvbS5icg....CSeq:">623e556571@ZGVzZW4tcGMtMDguZ292b2lwLmNvbS5icg....CSeq:</a> 1
INVITE..Contact: <a class="moz-txt-link-freetext" href="sip:55341#5433330000@192.168.0.2">sip:55341#5433330000@192.168.0.2</a>, q=1,
<a class="moz-txt-link-freetext" href="sip:123#5433330000@1">sip:123#5433330000@1</a><br>
&nbsp; 92.168.0.3, q=2, <a class="moz-txt-link-freetext" href="sip:55341#5433330000@192.168.0.4">sip:55341#5433330000@192.168.0.4</a>, q=3,
<a class="moz-txt-link-freetext" href="sip:55341#5433330000@192.168.0.5">sip:55341#5433330000@192.168.0.5</a>, <a class="moz-txt-link-freetext" href="sip:55341#5433330000@192.168.0.6">sip:55341#5433330000@192.168.0.6</a>,
<a class="moz-txt-link-freetext" href="sip:553">sip:553</a><br>
&nbsp; <a class="moz-txt-link-abbreviated" href="mailto:41#5433330000@192.168.0.7">41#5433330000@192.168.0.7</a>, <a class="moz-txt-link-freetext" href="sip:55341#5433330000@192.168.0.8">sip:55341#5433330000@192.168.0.8</a>,
<a class="moz-txt-link-freetext" href="sip:55341#5433330000@192.168.0.9">sip:55341#5433330000@192.168.0.9</a>, <a class="moz-txt-link-freetext" href="sip:55341#5433330000@192.168.0.10">sip:55341#5433330000@192.168.0.10</a>.<br>
&nbsp; .Server: Test Redirect..Content-Length: 0....<br>
        <br>
        <br>
        <br>
How I can configure to send fist to <a class="moz-txt-link-freetext" href="sip:55341#5433330000@192.168.0..10">sip:55341#5433330000@192.168.0..10</a>
and after if I not sucess it sends to <a class="moz-txt-link-freetext" href="sip:55341#5433330000@192.168.0.9">sip:55341#5433330000@192.168.0.9</a>,
etc...?<br>
        <br>
        <br>
        </td>
      </tr>
    </tbody>
  </table>
</blockquote>
After get_redirects() try to use t_load_contacts() and
t_next_contacts():<br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/1.5.x/tm.html#id2531755">http://kamailio.org/docs/modules/1.5.x/tm.html#id2531755</a><br>
<br>
Haven't tried myself but should be the way to go.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
</body>
</html>