I don't see you doing any register functions in your script.<span></span><br><br>On Friday, January 11, 2013, Jeryes . wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<div><br></div><div>I have a very simple b2bua server (running on opensips 1.7) that only uses topology hiding to make the communication between two sip server, and it's working fine to process calls, but I'm having problems with Register requests. When one of the sip servers sends the Register to b2bua, the Request is not being processed and opensips is logging the following errors: </div>
<div><br></div><div><div>Error log:</div><div><br></div><div><div>Jan 11 19:48:20 /usr/local/sbin/opensips[20559]: REGISTER (call id: <a href="javascript:_e({}, 'cvml', '2ce8dced12ca6e7c0e9a68d6311c501b@192.168.194.130');" target="_blank">2ce8dced12ca6e7c0e9a68d6311c501b@192.168.194.130</a>)</div>
<div>Jan 11 19:48:20 /usr/local/sbin/opensips[20559]: ERROR:b2b_entities:b2b_new_dlg: Called b2b_init on a Cancel message</div><div>Jan 11 19:48:20 /usr/local/sbin/opensips[20559]: ERROR:b2b_entities:server_new: failed to create new dialog structure entry</div>
<div>Jan 11 19:48:20 /usr/local/sbin/opensips[20559]: ERROR:b2b_logic:create_top_hiding_entities: failed to create new b2b server instance</div></div><div><br></div></div><div><br></div><div>Is the top hiding script suposed to work with Register requests or I should process those requests by other way?</div>
<div><br></div><div>SipServer (pbx, sip proxy) ---> B2BUA ---> SipServer(carrier, sip proxy)</div><div>Register Request -----------------> stuck</div><div><br></div><div><br></div><div>
The opensips.cfg is the default, and I only changed the main route:</div><div><br></div><div><pre style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px;color:rgb(102,102,102)">
<span style="color:rgb(0,0,0)">loadmodule </span><span style="color:rgb(0,136,0)">"b2b_entities.so"</span><span style="color:rgb(0,0,0)"><br>loadmodule </span><span style="color:rgb(0,136,0)">"b2b_logic.so"</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><pre style="color:rgb(102,102,102);font-family:'Lucida Console','Andale Mono','Courier New',Courier;font-size:0.9em;line-height:1.2em;margin-top:0px;margin-bottom:0px">
<span style="color:rgb(102,102,0)"><br></span></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.633333206176758px">route{
if (!mf_process_maxfwd_header("10"))
{
sl_send_reply("483","Too Many Hops");
exit;
}
if( is_method("INVITE") || is_method("REGISTER") )
{
# DO NOT call t_newtran() on this request -> it will result in the transaction never being deleted
xlog("REGISTER (call id: $ci)\n");
b2b_init_request("top hiding");
exit; # do not forward this request, another one will be generated
};
route(1);
}
route[1] {
# for INVITEs enable some additional helper routes
if (is_method("INVITE")) {
t_on_branch("2");
t_on_reply("2");
t_on_failure("1");
}
if (!t_relay()) {
sl_reply_error();
};
exit;
}</span></font><span style="color:rgb(102,102,102);font-family:'Lucida Console','Andale Mono','Courier New',Courier;font-size:0.9em;line-height:1.2em">
</span></pre><div style="color:rgb(102,102,102);font-family:'Lucida Console','Andale Mono','Courier New',Courier;font-size:0.9em;line-height:1.2em"><br></div></pre><pre style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px;color:rgb(102,102,102)">
<span style="color:rgb(0,136,0)"> </span></pre><pre style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px;color:rgb(102,102,102)">
<br></pre><pre style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px;color:rgb(102,102,102)"><span style="color:rgb(0,136,0)"><br>
</span></pre><pre style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px"><font color="#000000">Thanks in advance!</font></pre>
<pre style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px"><font color="#000000"><br></font></pre><pre style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px">
<font color="#000000">regards,</font></pre><pre style="font-size:0.9em;font-family:'Lucida Console','Andale Mono','Courier New',Courier;line-height:1.2em;margin-top:0px;margin-bottom:0px"><font color="#000000">jeryes</font></pre>
</div></div>
</blockquote><br><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>