<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Sorry for not changing the subject line earlier. Please find the reply below again.</div><div>Thanks,</div>
<div><br></div><div>--- Jayesh</div><div><br></div>Hi Anca,<br>Thanks for your reply.<br>I was checking the module documentation of 1.6 version for b2b_logic where<br>both the parameters custom_headers as well as cleanup_period is documented.<br>
Later I realized that it points to the devel folder.<br>I will check with the devel version anyways. But just for my understanding;<br>is the code snippet pasted kind of correct. I mean if the $rd is specified<br>to the script and b2b_init is called will rest of the work like initiating<br>
dialogs on both sides and bridging calls will be handled automatically.<br>Nothin else needs to be done??<br><br>Thanks for all the help !!<br><br>--- Jayesh<br><br>Hi Jayesh,<br>&gt;<br>&gt; FIrst of all, the error that those parameters do not exist is normal<br>
&gt; since they do not exist :). costum_headers is a parameter that was added<br>&gt; in devel branch, and the correct name for the other parameter is<br>&gt; clean_period. But I have checked now, and in the documentation it is in<br>
&gt; fact written &quot;cleanup_period&quot;. I will fix this in the code to really<br>&gt; have &quot;cleanup_period&quot;.<br>&gt; Can you please investigate the core file with gdb and print here the<br>&gt; backtrace? There is also another crash report and I am investigating it<br>
&gt; now.<br>&gt;<br>&gt; Regards,<br>&gt;<br>&gt; --<br>&gt; Anca Vamanu<br>&gt; <a href="http://www.voice-system.ro/" target="_blank" style="color: rgb(42, 93, 176); ">www.voice-system.ro</a><br>&gt;<br>&gt;<br>&gt;<br>
&gt;<br>&gt; Jayesh Nambiar wrote:<br>&gt; &gt; Hi All,<br>&gt; &gt; I have been trying to do some experiments with B2b modules in<br>&gt; &gt; Opensips. What I am trying to do is create another OpenSips instance<br>&gt; &gt; which will only act as Topology Hiding Server in front of my proxy.<br>
&gt; &gt; So calls processed from my proxy will go to the B2b Opensips instance,<br>&gt; &gt; the B2b instance will extract a header which will contain the<br>&gt; &gt; destination domain and route the call to that domain in B2b mode (Is<br>
&gt; &gt; this doable?).<br>&gt; &gt; First issue:<br>&gt; &gt; I get these errors on loading the parameters:<br>&gt; &gt; parameter &lt;cleanup_period&gt; not found in module &lt;b2b_logic&gt;<br>&gt; &gt; parameter &lt;custom_headers&gt; not found in module &lt;b2b_logic&gt;<br>
&gt; &gt; I have compiled Opensips 1.6.1 from source in Debian.<br>&gt; &gt;<br>&gt; &gt; Second Issue:<br>&gt; &gt; I commented these parameters and tried running opensips but ran into<br>&gt; &gt; Segfault.<br>&gt; &gt; Snippet of my cfg file:<br>
&gt; &gt;<br>&gt; &gt; loadmodule &quot;b2b_entities.so&quot;<br>&gt; &gt; modparam(&quot;b2b_entities&quot;, &quot;server_address&quot;, &quot;<a href="mailto:sip%3Ab2bua@opensips.org" style="color: rgb(42, 93, 176); ">sip:b2bua@opensips.org</a>&lt;<a href="mailto:sip%253Ab2bua@opensips.org" style="color: rgb(42, 93, 176); ">sip%3Ab2bua@opensips.org</a>&gt;<br>
&gt; &gt; &lt;mailto:<a href="mailto:sip%253Ab2bua@opensips.org" style="color: rgb(42, 93, 176); ">sip%3Ab2bua@opensips.org</a> &lt;<a href="mailto:sip%25253Ab2bua@opensips.org" style="color: rgb(42, 93, 176); ">sip%253Ab2bua@opensips.org</a>&gt;&gt;&quot;)<br>
&gt; &gt;<br>&gt; &gt; loadmodule &quot;b2b_logic.so&quot;<br>&gt; &gt; #modparam(&quot;b2b_logic&quot;, &quot;cleanup_period&quot;, 60)<br>&gt; &gt; #modparam(&quot;b2b_logic&quot;, &quot;custom_headers&quot;, &quot;Status&quot;)<br>
&gt; &gt;<br>&gt; &gt; route {<br>&gt; &gt;      if(method==&quot;INVITE&quot;) {<br>&gt; &gt;              $rd = $hdr(Dest);<br>&gt; &gt;              b2b_init_request(&quot;top hiding&quot;);<br>&gt; &gt;              exit;<br>
&gt; &gt;     }<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; Can i find few more examples somewhere of using the B2B modules in<br>&gt; &gt; opensips so that i can start thinking of how do I integrate these<br>&gt; &gt; features into my current setup !!<br>
&gt; &gt; Any help is very much appreciated as always.<br>&gt; &gt;<br>&gt; &gt; Thanks,<br>&gt; &gt;<br>&gt; &gt; --- Jayesh</span>