Hmmm<div><br></div><div>it works now i just remove Record Route function and it works,,, now i can dial from 602 to 601... thanks :).</div><div><br></div><div>i will start work on how i will register multiple extension via kamailio to asterisk ... can i use regular expression in $fu=XXX instead of actual extension extension... <br>
<br><div class="gmail_quote">2009/11/11 Denis Putyato <span dir="ltr">&lt;<a href="mailto:denis7979@mail.ru">denis7979@mail.ru</a>&gt;</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"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">Registration is a process for telling SoftSwitch (in your
variant - Asterisk) where (on which username, IP address and port) the
SoftSwitch must send INVITE when received incoming call for 601. Try to
understand where your asterisk try to send INVITE when you try to call from 602
to 601. </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">ngrep utility will help you (<a href="http://ngrep.sourceforge.net/download.html" target="_blank">http://ngrep.sourceforge.net/download.html</a>)</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"> toqeer ali
[mailto:<a href="mailto:toqeer83@gmail.com" target="_blank">toqeer83@gmail.com</a>] <br>
<b>Sent:</b> Wednesday, November 11, 2009 2:18 PM</span></p><div><div></div><div class="h5"><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</div></div><p></p>

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

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

<div>

<p class="MsoNormal">Here is the update:</p>

</div>

<div>

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

</div>

<p class="MsoNormal">what i have done so for is that I have &quot;Register
extension 601&quot; to asterisk via kamailio and it is registered!. </p>

<div>

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

</div>

<div>

<p class="MsoNormal">When i call to 602 (configured on 192.168.0.1 -- asterisk
box) it calls and make connection and voice call also works (RTP Traffic is
ok). </p>

</div>

<div>

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

</div>

<div>

<p class="MsoNormal">However, when i call to 601 from 602 (which is directly
connected to asterisk without kamailio ),  601
can&#39;t receive call via kamailio. This is the main problem.
Please guide me that how i will define this in kamailio (ip = 192.168.0.2) that
xlite with extension 601 can receive call through 602 which is
another extension on Asterisk.</p>

</div>

<div>

<div>

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

</div>

<div>

<p class="MsoNormal">In a nutshell:  601 (registered through Kamailio to
Asterisk) ---can call ---&gt; 602 (registered via Asterisk)</p>

</div>

<div>

<p class="MsoNormal">However:        602----cannot call
------&gt; 601</p>

</div>

<div>

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

</div>

<div>

<p class="MsoNormal">please help.</p>

</div>

<div>

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

</div>

<div>

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

</div>

<div>

<div>

<p class="MsoNormal">2009/11/11 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">Try
to use dlg_bridge(); function in dialog module</span></p>

<p class="MsoNormal"><span 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"> toqeer
ali [mailto:<a href="mailto:toqeer83@gmail.com" target="_blank">toqeer83@gmail.com</a>]
<br>
<b>Sent:</b> Wednesday, November 11, 2009 12:13 PM</span></p>

<div>

<div>

<p class="MsoNormal"><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</p>

</div>

</div>

</div>

<div>

<div>

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

<p class="MsoNormal"><br>
<span style="font-size:11.5pt;font-family:&quot;Courier New&quot;;color:#1F497D">&quot;that
client send INVITE to asterisk via kamailio but no replay is in on this
INVITE&quot;</span></p>

<div>

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

</div>

<div>

<p class="MsoNormal"><span style="font-size:11.5pt">basically Asterisk receive the request
and send back to kamailio but kamailio can&#39;t send back to xlite..</span></p>

</div>

<div>

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

</div>

<div>

<div>

<p class="MsoNormal">2009/11/11
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">«</span><span lang="EN-US">but call does not route back to me</span><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Courier New&quot;;color:#1F497D">»</span></p>


<p class="MsoNormal"><span 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">You
mean, that incoming call from asterisk to client via kamailio doesn’t
work or that client send INVITE to asterisk via kamailio but no replay is in on
this INVITE? </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 lang="EN-US" style="font-size:10.0pt">From:</span></b><span lang="EN-US" 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 10:16 AM</span></p>

<div>

<div>

<p class="MsoNormal"><br>
<b>To:</b> Denis Putyato<br>
<b>Cc:</b> users@l</p>

</div>

</div>

<p class="MsoNormal"><span style="font-size:10.0pt"><a href="http://ists.kamailio.org" target="_blank">ists.kamailio.org</a></span></p>

<div>

<div>

<p class="MsoNormal"><span style="font-size:10.0pt"><br>
<b>Subject:</b> Re: [Kamailio-Users] Register Request Forward</span></p>

</div>

</div>

</div>

<div>

<div>

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

<p class="MsoNormal">Thanks
Again for the prompt reply... Basicaly i want to route Register Requests for
 multiple asterisk via kamailio ... by using pattern matching of
extensions...</p>

<div>

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

</div>

<div>

<p class="MsoNormal">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....</p>

</div>

<div>

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

</div>

<div>

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

</div>

<div>

<p class="MsoNormal" style="margin-bottom:12.0pt">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 ...</p>

<div>

<p class="MsoNormal">2009/11/11
Denis Putyato &lt;denis7979@mail.r</p>

<div>

<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>

<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>

<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>

</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>

</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>

</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></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>