<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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;}
@font-face
        {font-family:"Courier New \,serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* 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;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle26
        {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]-->
</head>
<body bgcolor="white" lang="DA" link="#0563C1" vlink="#954F72">
<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>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hmm.. Actually it look likes &#8220;route_se&#8221; is missing in the LEGS:: after a restart?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"># Before restart #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">dlg:: 227897 param=774.0 state=5 last_invite_cseq=29551 last_method=4 last_reply_code=200 db_flag=2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callid:: B2B.348.227897<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from::&nbsp; uri=sip:XXXX03@XX.XX.XX.36;user=phone tag=e33f629b154d16f5f57a07bf5d17124e-7644<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to::&nbsp; uri=sip:XXXX04@XX.XX.XX.120 tag=2075842316<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cseq::&nbsp; caller=29551 callee=1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route_set::&nbsp; caller=&lt;sip:XX.xx.XX.120;lr;ftag=e33f629b154d16f5f57a07bf5d17124e-7644;did=834.31f18683&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contact::&nbsp; caller=sip:xx.xx.xx.117:5060 callee=sip:xxxxxx04@10.101.16.179:5060;transport=udp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="color:#1F497D">send_sock:: xx.xx.xx.117<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LEGS::<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; leg:: 0 tag=2075842316 cseq=29551 contact=sip:xxxxxx04@10.101.16.179:5060;transport=udp route_se=&lt;sip:xx.xx.xx.120;lr;ftag=e33f629b154d16f5f57a07bf5d17124e-7644;did=834.31f18683&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"># After restart #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">dlg:: 227897 param=774.0 state=5 last_invite_cseq=29551 last_method=0 db_flag=0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callid:: B2B.348.227897<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from::&nbsp; uri=sip:xxxxxx03@xx.xx.xx.36;user=phone tag=e33f629b154d16f5f57a07bf5d17124e-7644<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to::&nbsp; uri=sip:xxxxxx04@xx.xx.xxx.120 tag=2075842316<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cseq::&nbsp; caller=29551 callee=1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route_set::&nbsp; caller=&lt;sip:xx.xx.xx.120;lr;ftag=e33f629b154d16f5f57a07bf5d17124e-7644;did=834.31f18683&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contact::&nbsp; caller=sip:xx.xx.xx.117:5060 callee=sip:xxxxxx04@10.101.16.179:5060;transport=udp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="color:#1F497D">send_sock:: xx.xx.xx.117<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<span lang="EN-US" style="color:#1F497D">LEGS::<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="color:#1F497D">leg:: 0 tag=2075842316 cseq=29551 contact=sip:xxxxxx04@10.101.16.179:5060;transport=udp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">/Søren<o:p></o:p></span></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 [mailto:bogdan@opensips.org]
<br>
<b>Sendt:</b> 19. januar 2016 11:13<br>
<b>Til:</b> Søren Andersen &lt;SOAN@stofa.dk&gt;; users@lists.opensips.org<br>
<b>Emne:</b> Re: SV: SV: SV: [OpenSIPS-Users] B2B BYEs<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">Hi Søren,<br>
<br>
It seems that the callee route set is stored in db (see the b2b_entities table, the route1 field =&quot;</span><span lang="EN-US" style="color:#1F497D">&lt;<a href="sip:XX.XX.XX.120;lr;ftag=a9ff31f61f2601c916f6044c2e20e16a-3c47;did=895.92039fc">sip:XX.XX.XX.120;lr;ftag=a9ff31f61f2601c916f6044c2e20e16a-3c47;did=895.92039fc</a>&gt;</span><span lang="EN-US">&quot;)<br>
<br>
Can you run the b2be_list MI command before and after the restart, to see if indeed, the callee route set is not properly restored ?<br>
<br>
</span>Regards,<br>
<br>
<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 href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 15.01.2016 12:21, Søren Andersen wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Yup.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">SELECT * FROM b2b.b2b_logic;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"># id, si_key, scenario, sstate, next_sstate, sparam0, sparam1, sparam2, sparam3, sparam4, sdp, lifetime, e1_type, e1_sid, e1_from, e1_to, e1_key, e2_type, e2_sid, e2_from, e2_to, e2_key, e3_type,
 e3_sid, e3_from, e3_to, e3_key</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">'226', '360.0', 'StofaB2B', '1', '1', '<a href="mailto:sip:XXXXX04@XX.XX.XX.120">sip:XXXXX04@XX.XX.XX.120</a>', '', '', '', '', '', '1452896043', '0', 'server1', '<a href="mailto:sip:XXXXX03@oXd3-sXw.XX.tXXX.XXX;user=phone">sip:XXXXX03@oXd3-sXw.XX.tXXX.XXX;user=phone</a>',
 '<a href="mailto:sip:XXXXXX04@XX.XX.XX.117:5060">sip:XXXXXX04@XX.XX.XX.117:5060</a>', 'B2B.39.160', '1', 'client1', '<a href="mailto:sip:XXXXXX03@oXX3-sX.XX.XXX.XXX;user=phone">sip:XXXXXX03@oXX3-sX.XX.XXX.XXX;user=phone</a>', '<a href="mailto:sip:XXXXX04@XX.XX.XX.120">sip:XXXXX04@XX.XX.XX.120</a>',
 'B2B.448.7695796', NULL, NULL, NULL, NULL, NULL</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">SELECT * FROM b2b.b2b_entities;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"># id, type, state, ruri, from_uri, to_uri, from_dname, to_dname, tag0, tag1, callid, cseq0, cseq1, contact0, contact1, route0, route1, sockinfo_srv, param, lm, lrc, lic, leg_cseq, leg_route, leg_tag,
 leg_contact, leg_sockinfo</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">'316', '0', '5', '</span><span lang="EN-US" style="color:#1F497D"><a href="mailto:sip:XXXXX04@XX.XX.XX.117:5060;user=phone"><span lang="DA">sip:XXXXX04@XX.XX.XX.117:5060;user=phone</span></a></span><span style="color:#1F497D">',
 '</span><span lang="EN-US" style="color:#1F497D"><a href="mailto:sip:XXXXXX03@osX3-sXw.XX.XXXX.XXX;user=phone"><span lang="DA">sip:XXXXXX03@osX3-sXw.XX.XXXX.XXX;user=phone</span></a></span><span style="color:#1F497D">', '</span><span lang="EN-US" style="color:#1F497D"><a href="mailto:sip:XXXXX04@10.250.224.22;user=phone"><span lang="DA">sip:XXXXX04@10.250.224.22;user=phone</span></a></span><span style="color:#1F497D">',
 '', '', 'mvgh6xvkp7z', 'B2B.39.160', '</span><span lang="EN-US" style="color:#1F497D"><a href="mailto:1q2rqu6-3232128665@osdX-ssw.XX.XXX.XX"><span lang="DA">1q2rqu6-3232128665@osdX-ssw.XX.XXX.XX</span></a></span><span style="color:#1F497D">', '32736', '1',
 '</span><span lang="EN-US" style="color:#1F497D"><a href="mailto:sip:XXXXXX03@XX.XX.XX.36:5060;transport=udp"><span lang="DA">sip:XXXXXX03@XX.XX.XX.36:5060;transport=udp</span></a></span><span style="color:#1F497D">', 'sip:XX.XX.XX.117:5060', '&lt;</span><span lang="EN-US" style="color:#1F497D"><a href="sip:XX.XX.XXX.117;lr"><span lang="DA">sip:XX.XX.XXX.117;lr</span></a></span><span style="color:#1F497D">&gt;',
 '', 'udp:XX.XX.XX.117:5060', '360.0', '0', '200', '32736', NULL, NULL, NULL, NULL, NULL</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">'317', '1', '5', '', '</span><span lang="EN-US" style="color:#1F497D"><a href="mailto:sip:XXXXXX03@osdX-ssw.XX.XXXX.XX;user=phone"><span lang="DA">sip:XXXXXX03@osdX-ssw.XX.XXXX.XX;user=phone</span></a></span><span style="color:#1F497D">',
 '</span><span lang="EN-US" style="color:#1F497D"><a href="mailto:sip:XXXXXX04@XX.XX.XX.120"><span lang="DA">sip:XXXXXX04@XX.XX.XX.120</span></a></span><span style="color:#1F497D">', '', '', 'a9ff31f61f2601c916f6044c2e20e16a-3c47', '2761431845', 'B2B.448.7695796',
 '32737', '1', 'sip:XX.XXX.XXX.117:5060', '</span><span lang="EN-US" style="color:#1F497D"><a href="mailto:sip:XXXXXX04@10.101.16.179:5060;transport=udp"><span lang="DA">sip:XXXXXX04@10.101.16.179:5060;transport=udp</span></a></span><span style="color:#1F497D">',
 '&lt;</span><span lang="EN-US" style="color:#1F497D"><a href="sip:XX.XX.XX.120;lr;ftag=a9ff31f61f2601c916f6044c2e20e16a-3c47;did=895.92039fc"><span lang="DA">sip:XX.XX.XX.120;lr;ftag=a9ff31f61f2601c916f6044c2e20e16a-3c47;did=895.92039fc</span></a></span><span style="color:#1F497D">&gt;',
 '', 'udp:XX.XX.XX.117:5060', '360.0', '4', '0', '32737', '32737', '&lt;</span><span lang="EN-US" style="color:#1F497D"><a href="sip:XX.XX.XX120;lr;ftag=a9ff31f61f2601c916f6044c2e20e16a-3c47;did=895.92039fc"><span lang="DA">sip:XX.XX.XX120;lr;ftag=a9ff31f61f2601c916f6044c2e20e16a-3c47;did=895.92039fc</span></a></span><span style="color:#1F497D">&gt;',
 '2761431845', '</span><span lang="EN-US" style="color:#1F497D"><a href="mailto:sip:XXXXXX04@10.101.16.179:5060;transport=udp"><span lang="DA">sip:XXXXXX04@10.101.16.179:5060;transport=udp</span></a></span><span style="color:#1F497D">', NULL</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">/Søren</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;</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 href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>]
<br>
<b>Sendt:</b> 15. januar 2016 11:07<br>
<b>Til:</b> Søren Andersen <a href="mailto:SOAN@stofa.dk">&lt;SOAN@stofa.dk&gt;</a>; <a href="mailto:users@lists.opensips.org">
users@lists.opensips.org</a><br>
<b>Emne:</b> Re: SV: SV: [OpenSIPS-Users] B2B BYEs</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&nbsp;<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:&quot;Courier New ,serif&quot;,serif"><br>
<br>
</span><tt><span style="font-size:10.0pt">In the scenario with the restart, after the restart, the sequential requests generated by b2b is missing the Route header - and it is bypassing the proxy - can you ppst the DB records for b2b you have during the restart?</span></tt><span style="font-size:10.0pt;font-family:&quot;Courier New ,serif&quot;,serif"><br>
<br>
</span><tt><span style="font-size:10.0pt">Regards,</span></tt><span style="font-size:10.0pt;font-family:&quot;Courier New ,serif&quot;,serif"><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 href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 15.01.2016 10:57, 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">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Sure. I&#8217;ve attached the two files.
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;(B2B server)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;(OpenSIPS Proxy)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;(SIP Client)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">My scenario:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&lt;?xml version=&quot;1.0&quot;?&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&lt;scenario id=&quot;StofaB2B&quot; name=&quot;MS start and end&quot; param=&quot;2&quot; type=&quot;script&quot;&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp; &lt;init&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bridge&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;server&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;id&gt;server1&lt;/id&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/server&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;client&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;id&gt;client1&lt;/id&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;type&gt;message&lt;/type&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;destination&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value type=&quot;param&quot;&gt;1&lt;/value&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/destination&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/client&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;/bridge&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp; &lt;state&gt;1&lt;/state&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp; &lt;/init&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&lt;/scenario&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I&#8217;m doing this because my SIP provider can&#8217;t handle multi dialogs, so if I first send a call to the sip client and if the call is unanswered I can&#8217;t redirect the call to voicemail since this will
 generate a new to_tag. And this can&#8217;t my SIP provider not handle. So therefore I need some B2B logic to make this happen for me.
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">/Søren</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:&quot;Helvetica&quot;,sans-serif;mso-fareast-language:DA">&nbsp;</span><o:p></o:p></p>
</div>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:DA">Fra:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:DA"> Bogdan-Andrei Iancu [<a 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 href="mailto:SOAN@stofa.dk">&lt;SOAN@stofa.dk&gt;</a>; OpenSIPS users mailling list <a href="mailto:users@lists.opensips.org">
&lt;users@lists.opensips.org&gt;</a><br>
<b>Emne:</b> Re: SV: [OpenSIPS-Users] B2B BYEs</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&nbsp;<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:&quot;Courier New ,serif&quot;,serif"><br>
<br>
</span><tt><span style="font-size:10.0pt">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 ?</span></tt><span style="font-size:10.0pt;font-family:&quot;Courier New ,serif&quot;,serif"><br>
<br>
</span><tt><span style="font-size:10.0pt">Regards,</span></tt><span style="font-size:10.0pt;font-family:&quot;Courier New ,serif&quot;,serif"><br>
<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 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">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Only if I reload the B2B the BYEs is sent directly to the client. &#8211; But the funny thing is this only happens if the client is receives a call.&nbsp; If the client initialize the call everything works
 fine.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">&nbsp;</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">&nbsp;</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 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 href="mailto:users@lists.opensips.org">
&lt;users@lists.opensips.org&gt;</a>; Søren Andersen <a href="mailto:SOAN@stofa.dk">&lt;SOAN@stofa.dk&gt;</a><br>
<b>Emne:</b> Re: [OpenSIPS-Users] B2B BYEs</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&nbsp;<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:&quot;Courier New ,serif&quot;,serif"><br>
<br>
</span><tt><span style="font-size:10.0pt">With or without restarting the B2B isn;t the BYE sent by client to the B2B instance ?</span></tt><span style="font-size:10.0pt;font-family:&quot;Courier New ,serif&quot;,serif"><br>
<br>
</span><tt><span style="font-size:10.0pt">Regards,</span></tt><span style="font-size:10.0pt;font-family:&quot;Courier New ,serif&quot;,serif"><br>
<br>
<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 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">&nbsp;<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I&#8217;ve some strange issues with the B2B module. &#8211; 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. &nbsp;But if I don&#8217;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">&nbsp;</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">&nbsp;</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 -&gt; B2B -&gt; Proxy -&gt; Client</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">&nbsp;</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">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">loadmodule &quot;b2b_entities.so&quot;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">loadmodule &quot;b2b_logic.so&quot;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam(&quot;b2b_logic&quot;, &quot;script_scenario&quot;, &quot;/etc/opensips/b2b.xml&quot;)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam(&quot;b2b_entities&quot;, &quot;db_url&quot;, <a href="mailto:mysql://opensips:XXX@XX.XX.XX.XX/b2b">
&quot;mysql://opensips:XXX@XX.XX.XX.XX/b2b&quot;</a>)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam(&quot;b2b_entities&quot;, &quot;db_mode&quot;, 1)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam(&quot;b2b_logic&quot;, &quot;db_mode&quot;, 1)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam(&quot;b2b_logic&quot;, &quot;db_url&quot;, <a href="mailto:mysql://opensips:XXX@XX.XX.XX.XX/b2b">
&quot;mysql://opensips:XXX@XX.XX.XX.XX/b2b&quot;</a>)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam(&quot;b2b_entities&quot;, &quot;replication_mode&quot;, 1)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">modparam(&quot;b2b_logic&quot;, &quot;init_callid_hdr&quot;, &quot;Init-CallID&quot;)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">if (is_method(&quot;INVITE&quot;) &amp;&amp; !has_totag()) {</span><o:p></o:p></p>
<p class="MsoNormal" style="text-indent:65.2pt"><span lang="EN-US">b2b_init_request(&quot;B2B&quot;,<a href="mailto:sip:$tU@XX.XX.XX.XX">&quot;sip:$tU@XX.XX.XX.XX&quot;</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">&nbsp;</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>
<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 href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre><a 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">&nbsp;</span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt">&nbsp;</span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt">&nbsp;</span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,serif;mso-fareast-language:DA"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>