<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Søren,<br>
<br>
In the scenario with the restart, a<tt>fter the restart, the s<tt>equential
requests generated by <tt>b2b is missing the Route header - <tt>and
it is bypassing the proxy - can you <tt>p<tt>pst the DB
re<tt>c</tt>ords for b2b you have during the restart?<br>
</tt></tt></tt></tt></tt></tt><br>
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 15.01.2016 10:57, Søren Andersen
wrote:<br>
</div>
<blockquote
cite="mid:F0A535BF32A63B4D8EC9E9AB5EC1856D41062DFA@SEEMBX.root.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Formateret HTML Tegn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
span.FormateretHTMLTegn
        {mso-style-name:"Formateret HTML Tegn";
        mso-style-priority:99;
        mso-style-link:"Formateret HTML";
        font-family:Consolas;
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
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"><span style="color:#1F497D">Hi
Bogdan-Andrei,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Sure.
I’ve attached the two files.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"> (B2B
server)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"> (OpenSIPS
Proxy)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"> (SIP
Client)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">My
scenario:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><?xml
version="1.0"?><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><scenario
id="StofaB2B" name="MS start and end" param="2"
type="script"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<init><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<bridge><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<server><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<id>server1</id><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
</server><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<client><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<id>client1</id><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<type>message</type><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<destination><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<value type="param">1</value><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
</destination><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
</client><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
</bridge><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
<state>1</state><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">
</init><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"></scenario><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">I’m
doing this because my SIP provider can’t handle multi
dialogs, so if I first send a call to the sip client and if
the call is unanswered I can’t redirect the call to
voicemail since this will generate a new to_tag. And this
can’t my SIP provider not handle. So therefore I need some
B2B logic to make this happen for me.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">/Søren<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Helvetica",sans-serif;display:none;mso-fareast-language:DA"
lang="EN-US"><o:p> </o:p></span></p>
</div>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="color:windowtext;mso-fareast-language:DA"
lang="EN-US">Fra:</span></b><span
style="color:windowtext;mso-fareast-language:DA"
lang="EN-US"> Bogdan-Andrei Iancu
[<a class="moz-txt-link-freetext" href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]
<br>
<b>Sendt:</b> 14. januar 2016 16:41<br>
<b>Til:</b> </span><span
style="color:windowtext;mso-fareast-language:DA">Søren
Andersen <a class="moz-txt-link-rfc2396E" href="mailto:SOAN@stofa.dk"><SOAN@stofa.dk></a>; OpenSIPS users mailling
list <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Emne:</b> Re: SV: [OpenSIPS-Users] B2B BYEs<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt">Hi
Søren,</span></tt><span
style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
<tt>Do you have an ngrep capture (taken from opensips b2b,
covering all calls/legs involved in the scenario) showing
the call with the B2B restarted ?</tt><br>
<br>
<tt>Regards,</tt><br>
<br>
</span><span style="font-size:12.0pt;mso-fareast-language:DA"><o:p></o:p></span></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 13.01.2016 14:39, Søren Andersen
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#1F497D">Hi
Bogdan-Andrei,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Only
if I reload the B2B the BYEs is sent directly to the
client. – But the funny thing is this only happens if the
client is receives a call. If the client initialize the
call everything works fine.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span
style="color:#1F497D;mso-fareast-language:DA">/Søren</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="color:windowtext;mso-fareast-language:DA">Fra:</span></b><span
style="color:windowtext;mso-fareast-language:DA">
Bogdan-Andrei Iancu [<a moz-do-not-send="true"
href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]
<br>
<b>Sendt:</b> 13. januar 2016 11:39<br>
<b>Til:</b> OpenSIPS users mailling list <a
moz-do-not-send="true"
href="mailto:users@lists.opensips.org">
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a></a>; Søren Andersen
<a moz-do-not-send="true" href="mailto:SOAN@stofa.dk"><SOAN@stofa.dk></a><br>
<b>Emne:</b> Re: [OpenSIPS-Users] B2B BYEs</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><tt><span style="font-size:10.0pt">Hi
Søren,</span></tt><span
style="font-size:10.0pt;font-family:"Courier
New""><br>
<br>
<tt>With or without restarting the B2B isn;t the BYE sent
by client to the B2B instance ?</tt><br>
<br>
<tt>Regards,</tt><br>
<br>
<br>
</span><o:p></o:p></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 12.01.2016 16:32, Søren Andersen
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello there,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’ve some strange
issues with the B2B module. – I use MySQL as backend,
and if I reload OpenSIPS the BYE is sent directly to the
client, and not my SIP proxy. My B2B and OpenSIPS is two
difference servers.
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">If I take a look in
b2b_entities table I notice the contact1 field contains
the IP address of the client. But if I don’t reload the
OpenSIPS the BYE will be sent correctly the my proxy,
and then to the client.
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Now, my question is
how can I make sure that B2B server will not try to
communicate with the clients after a reload?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">My topology:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">ISP -> B2B ->
Proxy -> Client</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">My config:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">loadmodule
"b2b_entities.so"</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">loadmodule
"b2b_logic.so"</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("b2b_logic",
"script_scenario", "/etc/opensips/b2b.xml")</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("b2b_entities",
"db_url", <a moz-do-not-send="true"
href="mailto:mysql://opensips:XXX@XX.XX.XX.XX/b2b">
"mysql://opensips:XXX@XX.XX.XX.XX/b2b"</a>)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("b2b_entities",
"db_mode", 1)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("b2b_logic",
"db_mode", 1)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("b2b_logic",
"db_url", <a moz-do-not-send="true"
href="mailto:mysql://opensips:XXX@XX.XX.XX.XX/b2b">
"mysql://opensips:XXX@XX.XX.XX.XX/b2b"</a>)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("b2b_entities",
"replication_mode", 1)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam("b2b_logic",
"init_callid_hdr", "Init-CallID")</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">if
(is_method("INVITE") && !has_totag()) {</span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:65.2pt"><span
lang="EN-US">b2b_init_request("B2B",<a
moz-do-not-send="true"
href="mailto:sip:$tU@XX.XX.XX.XX"><a class="moz-txt-link-rfc2396E" href="mailto:sip:$tU@XX.XX.XX.XX">"sip:$tU@XX.XX.XX.XX"</a></a>);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:65.2pt"><span
lang="EN-US">exit;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">}</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">/Søren</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif;mso-fareast-language:DA"><o:p> </o:p></span></p>
</div>
</blockquote>
<br>
</body>
</html>