You need to re-read the B2B_Logic module.<div><br></div><div><a href="http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id292703">http://www.opensips.org/html/docs/modules/1.8.x/b2b_logic.html#id292703</a></div>
<div><br></div><div>You should only call the b2b_init_request function on an initial invite.  So you need something like this</div><div><br></div><div><pre class="programlisting" style="background-color:rgb(254,254,238);border:1px solid rgb(153,204,204);padding-left:15pt">
if(is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag()</pre>before you call b2b_init_request</div><div><br></div><div>You shouldn&#39;t be calling the b2b_init function for a REGISTER request.</div><div><br></div><div><br>
<div class="gmail_quote">On Sat, Jan 12, 2013 at 10:27 AM, Jeryes . <span dir="ltr">&lt;<a href="mailto:jeryes@voicetechnology.com.br" target="_blank">jeryes@voicetechnology.com.br</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>Hi <span name="Duane Larson">Duane,<br><br></span></div><span name="Duane Larson">Thanks for your reply!<br><br></span></div><span name="Duane Larson">I don&#39;t know if this is right, but my idea is to forward the Register requests </span><span name="Duane Larson">from one sip proxy to the other passing </span><span name="Duane Larson">through opensips, </span><span name="Duane Larson">creating a new a new dialog</span> by executing b2b_init_request(&quot;top hiding&quot;), as it is working to INVITE requests:<br>

<br></div>route<br>{<br><div><pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px"><font color="#000000" face="Lucida Console, Andale Mono, Courier New, Courier"><span style="font-size:11px;line-height:12.6333px">    if( </span></font><font color="#000000" face="Lucida Console, Andale Mono, Courier New, Courier"><span style="font-size:11px;line-height:12.6333px">is_method(&quot;INVITE&quot;) || </span></font><font color="#000000" face="Lucida Console, Andale Mono, Courier New, Courier"><span style="font-size:11px;line-height:12.6333px">is_method(&quot;REGISTER&quot;) ) 
    {
      b2b_init_request(&quot;top hiding&quot;);<br></span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font color="#000000" face="Lucida Console, Andale Mono, Courier New, Courier"><span style="font-size:11px;line-height:12.6333px">      exit;<br>

</span></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font color="#000000" face="Lucida Console, Andale Mono, Courier New, Courier"><span style="font-size:11px;line-height:12.6333px">    }<br></span></font></pre>

</pre>}<br><br></div><div>Does top hiding work this way, to pass Register requests? Do I need to implement any function to make it work?<br></div><div><span name="Duane Larson"><br></span></div><div><span name="Duane Larson">Thank you!<br>

</span></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--
</div>