<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Dheeraj,<br>
<br>
All sequential requests related to SIP dialogs going through B2B
are automatically handled by B2B module, invisible from script
level.<br>
<br>
If the BYE you get ends up in script, it may be because the BYE is
bogus (as SIP) and does not match the B2B dialogs.<br>
<br>
Best Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 09.06.2015 09:58, Dheeraj Bisht
wrote:<br>
</div>
<blockquote
cite="mid:502fe1a5bf1048b68058057e4aeebf5a@GURMBXV02.AD.ARICENT.COM"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal">I am new to Opensips and also new on SIP as
well. I am trying to configure Opensips as B2BUA top hiding
mode.<o:p></o:p></p>
<p class="MsoNormal">I used the below configuration for that:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">route {<o:p></o:p></p>
<p class="MsoNormal">…………….<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> if(is_method("INVITE")&& !(src_ip
== "<my IP>” && src_port ==5060)) /* skip Invite
messages generated by the B2BUA*/<o:p></o:p></p>
<p class="MsoNormal"> {<o:p></o:p></p>
<p class="MsoNormal"> b2b_init_request("top hiding");<o:p></o:p></p>
<p class="MsoNormal"> exit; # do not forward this request,
another one will be generated<o:p></o:p></p>
<p class="MsoNormal"> };<o:p></o:p></p>
<p class="MsoNormal">…………….<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">With such configuration, I am able to
establish a call between my client and server machine.
<o:p></o:p></p>
<p class="MsoNormal">During the call establishment, Opensips
B2BUA translated the Call ID with its own call ID
[B2B.###.######]<o:p></o:p></p>
<p class="MsoNormal">However, when I tried to terminate the
call, Opensips B2BUA does not translate the call ID and its
causes the error at the server.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Looking into the looks, it seemed to me
that the Opensips B2BUA does not go to search the dialog
context while handling BYE message.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The termination works fine for me when I
changed the small code in b2b_prescript_f so that the code go
to search the dialog when BYE message arrives.<o:p></o:p></p>
<p class="MsoNormal"> if((method_value == METHOD_ACK) ||<o:p></o:p></p>
<p class="MsoNormal"> (method_value == METHOD_BYE))
//BYE Method added here<o:p></o:p></p>
<p class="MsoNormal"> {<o:p></o:p></p>
<p class="MsoNormal"> goto search_dialog;<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Let me know if I am missing something here?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
</div>
"DISCLAIMER: This message is proprietary to Aricent and is
intended solely for the use of the individual to whom it is
addressed. It may contain privileged or confidential information
and should not be circulated or used for any purpose other than
for what it is intended. If you have received this message in
error, please notify the originator immediately. If you are not
the intended recipient, you are notified that you are strictly
prohibited from using, copying, altering, or disclosing the
contents of this message. Aricent accepts no responsibility for
loss or damage arising from the use of the information transmitted
by this email including damage from virus."
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>