<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Andreas,<br>
<br>
You don;t have to change anything in the opensips script (for
adding the 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 a caller is connected to an announcement, upon announcement
termination, the call is sent to callee side.<br>
<br>
Could you post your XML scenario ?<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>
OpenSIPS Bootcamp 2017, Houston, US
<a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html">http://opensips.org/training/OpenSIPS_Bootcamp_2017.html</a>
</pre>
<div class="moz-cite-prefix">On 06/13/2017 01:22 PM, Andreas
Bøckmann wrote:<br>
</div>
<blockquote
cite="mid:CAN1RbiCw=K4StPYUfQ02=tFuCgnYP1-+K1OPuXmyWEnALruyRg@mail.gmail.com"
type="cite">
<div dir="ltr">Hello
<div><br>
</div>
<div>I wanted to test the B2B script-scenario prepaid from the
B2BUA tutorials.</div>
<div>The only change I wanted was to only invoke a MediaServer
before connecting the call to B-party.</div>
<div><br>
</div>
<div>Note my OpenSIPS is running regular proxy/registrar
functions besides B2B.</div>
<div><br>
</div>
<div>The B2B is able to setup the call towards MediaServer and
trigger on receiving BYE.</div>
<div><br>
</div>
<div>The next leg towards the actual B-party is not setup as
OpenSIPS doesn't see this as B2B? but does authorization for
that INVITE request, which fails.</div>
<div><br>
</div>
<div>I believe it's due to the B2B doing somethingsomething to
my URIs and/or CSEQs.</div>
<div><br>
</div>
<div>My issue seems very much like something I found in a
previous post (<a moz-do-not-send="true"
href="https://opensips.org/pipermail/users/2010-February/010931.html">https://opensips.org/pipermail/users/2010-February/010931.html</a>)
but there was no final solution.</div>
<div><br>
</div>
<div>I trigger this for the initial INVITE as such:</div>
<div><br>
</div>
<div>
<div> if ($rU =~ "^\+1234567890.*") {</div>
<div><br>
</div>
<div> # t_newtran is necessary because b2b should not
handle retransmissions.</div>
<div> if (!t_newtran()) {</div>
<div> sl_reply_error();</div>
<div> exit;</div>
<div> }</div>
<div><br>
</div>
<div> xlog("L_WARN","B2BUA cid=$ci, Call from $fU to
$rU initialized as B2B\n");</div>
<div> b2b_init_request("freecall", "<a
moz-do-not-send="true"
href="http://sip:+9999@1.2.3.4:5080"><a class="moz-txt-link-freetext" href="sip:+9999@1.2.3.4:5080">sip:+9999@1.2.3.4:5080</a></a>");</div>
<div> exit;</div>
<div> }</div>
</div>
<div><br>
</div>
<div>My B2B scenario file: <a moz-do-not-send="true"
href="https://pastebin.com/KwpgJziL">https://pastebin.com/KwpgJziL</a></div>
<div><br>
</div>
<div>Any clues to what the solution from Anca was in the
original post referenced above or any other ideas as to what I
am doing wrong here?</div>
<div><br>
</div>
</div>
<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>