<div dir="ltr">Hello Bogdan<div><br></div><div>Quickly cleaning up answered stuff? ;o)<br><div><br></div><div>The scenario file you asked for was included in the original post: <a href="https://pastebin.com/KwpgJziL" rel="noreferrer" target="_blank" style="font-size:12.8px">https://pastebin.com/KwpgJziL</a></div><div><br></div><div>I am using a modified marketing scenario already for something else; but I was trying to init the scenario from script when I receive an INVITE; not initiate it from the B2B as the marketing scenario does.</div><div><br></div><div>This was also included in the original post I believe.</div><div><br></div><div>//Andreas</div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Fri, 16 Jun 2017 17:56:25 +0300<br>
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>><br>
To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>>, Andreas<br>
        Bøckmann <<a href="mailto:monkeilas@gmail.com">monkeilas@gmail.com</a>><br>
Subject: Re: [OpenSIPS-Users] B2B prepaid.xml with one MediaServer<br>
Message-ID: <<a href="mailto:5e8a6ed7-c4e3-b0c3-fede-df196cddf96f@opensips.org">5e8a6ed7-c4e3-b0c3-fede-<wbr>df196cddf96f@opensips.org</a>><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
Hi Andreas,<br>
<br>
You don;t have to change anything in the opensips script (for adding the<br>
pre-call media server), but only in the XML scenario.<br>
<br>
Take a look at the marketing scenario (in the B2B tutorial), where after<br>
a caller is connected to an announcement, upon announcement termination,<br>
the call is sent to callee side.<br>
<br>
Could you post your XML scenario ?<br>
<br>
Best regards,<br>
<br>
Bogdan-Andrei Iancu<br>
   OpenSIPS Founder and Developer<br>
   <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.<wbr>com</a><br>
<br>
OpenSIPS Bootcamp 2017, Houston, US<br>
   <a href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html" rel="noreferrer" target="_blank">http://opensips.org/training/<wbr>OpenSIPS_Bootcamp_2017.html</a><br>
<br>
On 06/13/2017 01:22 PM, Andreas Bøckmann wrote:<br>
> Hello<br>
><br>
> I wanted to test the B2B script-scenario prepaid from the B2BUA tutorials.<br>
> The only change I wanted was to only invoke a MediaServer before<br>
> connecting the call to B-party.<br>
><br>
> Note my OpenSIPS is running regular proxy/registrar functions besides B2B.<br>
><br>
> The B2B is able to setup the call towards MediaServer and trigger on<br>
> receiving BYE.<br>
><br>
> The next leg towards the actual B-party is not setup as OpenSIPS<br>
> doesn't see this as B2B? but does authorization for that INVITE<br>
> request, which fails.<br>
><br>
> I believe it's due to the B2B doing somethingsomething to my URIs<br>
> and/or CSEQs.<br>
><br>
> My issue seems very much like something I found in a previous post<br>
> (<a href="https://opensips.org/pipermail/users/2010-February/010931.html" rel="noreferrer" target="_blank">https://opensips.org/<wbr>pipermail/users/2010-February/<wbr>010931.html</a>) but<br>
> there was no final solution.<br>
><br>
> I trigger this for the initial INVITE as such:<br>
><br>
>     if ($rU =~ "^\+1234567890.*") {<br>
><br>
>         # t_newtran is necessary because b2b should not handle<br>
> retransmissions.<br>
>         if (!t_newtran()) {<br>
>            sl_reply_error();<br>
>            exit;<br>
>         }<br>
><br>
>         xlog("L_WARN","B2BUA cid=$ci, Call from $fU to $rU initialized<br>
> as B2B\n");<br>
>         b2b_init_request("freecall", "<a href="http://sip:+9999@1.2.3.4:5080" rel="noreferrer" target="_blank">sip:+9999@1.2.3.4:5080</a><br>
> <<a href="http://sip:+9999@1.2.3.4:5080" rel="noreferrer" target="_blank">http://sip:+9999@1.2.3.4:5080</a><wbr>>");<br>
>         exit;<br>
>     }<br>
><br>
> My B2B scenario file: <a href="https://pastebin.com/KwpgJziL" rel="noreferrer" target="_blank">https://pastebin.com/KwpgJziL</a><br>
><br>
> Any clues to what the solution from Anca was in the original post<br>
> referenced above or any other ideas as to what I am doing wrong here?<br><br></blockquote></div></div></div></div>