Thanks Again for the prompt reply... Basicaly i want to route Register Requests for  multiple asterisk via kamailio ... by using pattern matching of extensions...<div><br></div><div>is i am on the right path ?? or i can achieve this from dispatcher or load balancer module  .... Basically i want to register specific extensions  to specific asterisk boxes....</div>
<div><br></div><div><br></div><div>from your previous reply i can send call to asterisk and register to as well but call does not route back to me... any clue ...<br><br><div class="gmail_quote">2009/11/11 Denis Putyato <span dir="ltr">&lt;denis7979@mail.r</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">








<div lang="RU" link="blue" vlink="purple">

<div>

<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">“</span><span lang="EN-US">The secret is that the other sip server was asterisk and i want
route call to asterisk via kamailio :).</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">”</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">I don’t understand why do you want to do any session with
asterisk via kamailio… not directly to asterisk… but any way the decision
is same – send() or rewritehost()</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">route {</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> if ($fU==”…”&amp;&amp;is_method(“INVITE”))</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">  record_route();</span></p><div class="im">

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">  rewritehost(“192.168.0.1”);</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">  t_relay();</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">}  </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> </span></p>

</div><p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">Do this before authentication checking is made in kamailio.</span></p>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">

<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> toqeer ali
[mailto:<a href="mailto:toqeer83@gmail.com" target="_blank">toqeer83@gmail.com</a>] <br>
<b>Sent:</b> Wednesday, November 11, 2009 6:49 AM<br>
<b>To:</b> Denis Putyato<br>
<b>Cc:</b> <a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
<b>Subject:</b> Re: [Kamailio-Users] Register Request Forward</span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<div>

<p class="MsoNormal">Thanks it Registered but i can&#39;t call on this ..
&quot;authentication Required from proxy&quot;. what i should do now.</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<p class="MsoNormal" style="margin-bottom:12.0pt">The secret is that the other
sip server was asterisk and i want route call to asterisk via kamailio :).</p>

<div>

<p class="MsoNormal">2009/11/10 Denis Putyato &lt;<a href="mailto:denis7979@mail.ru" target="_blank">denis7979@mail.ru</a>&gt;</p>

<div>

<div>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">Hi</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">If
not secret, why do you want to use such scheme?</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">Your
decision </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">send();
- core function.</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">{</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">If
(is_method(“REGISTER”)&amp;&amp;$fU==”….”)
send(“udp:192.168.0.1:5060”);</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">}</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">or </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">{</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> If
(is_method(“REGISTER”)&amp;&amp;$fU==”….”) {</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">  
rewritehost(“192.168..0.1”);</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">    
t_relay();</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> 
}</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">}</span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D"> </span></p>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">

<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:users-bounces@lists.kamailio.org" target="_blank">users-bounces@lists.kamailio.org</a>
[mailto:<a href="mailto:users-bounces@lists.kamailio.org" target="_blank">users-bounces@lists.kamailio.org</a>]
<b>On Behalf Of </b>toqeer ali<br>
<b>Sent:</b> Tuesday, November 10, 2009 1:56 PM<br>
<b>To:</b> <a href="mailto:users@lists.kamailio.org" target="_blank">users@lists.kamailio.org</a><br>
<b>Subject:</b> [Kamailio-Users] Register Request Forward</span></p>

</div>

<div>

<div>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Hi
all,</p>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">My
question is how to forward Register Request to another sip server.</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">For
example one user (X-lite) want to register with 192.168.0.1(sip server1) via
192.168.0.2(sip server 2).</p>

</div>

<div>

<p class="MsoNormal">it
means that in the domain part of xlite is 192.168..0.2 and
it basically register with 192.168.0.1.</p>

</div>

<div>

<p class="MsoNormal">192.168.0.2
will forward Register request to 192.168..0.1.</p>

</div>

<div>

<p class="MsoNormal">it
will be very  helpful if any one can answer.</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">Thanks </p>

</div>

<div>

<p class="MsoNormal"><br>
-- <br>
Toqeer Ali Syed<br>
<br>
Red Hat Certified Engineer<br>
mob:     +92 321 9059916</p>

</div>

</div>

</div>

</div>

</div>

</div>

<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
Toqeer Ali Syed<br>
<br>
Red Hat Certified Engineer<br>
mob:     +92 321 9059916</p>

</div></div></div>

</div>


</blockquote></div><br><br clear="all"><br>-- <br>Toqeer Ali Syed<br><br>Red Hat Certified Engineer<br>mob:     +92 321 9059916<br>
</div>