[OpenSIPS-Users] B2B prepaid.xml with one MediaServer
Andreas Bøckmann
monkeilas at gmail.com
Mon Jun 19 09:02:46 EDT 2017
Hello Bogdan
Quickly cleaning up answered stuff? ;o)
The scenario file you asked for was included in the original post:
https://pastebin.com/KwpgJziL
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.
This was also included in the original post I believe.
//Andreas
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 16 Jun 2017 17:56:25 +0300
> From: Bogdan-Andrei Iancu <bogdan at opensips.org>
> To: OpenSIPS users mailling list <users at lists.opensips.org>, Andreas
> Bøckmann <monkeilas at gmail.com>
> Subject: Re: [OpenSIPS-Users] B2B prepaid.xml with one MediaServer
> Message-ID: <5e8a6ed7-c4e3-b0c3-fede-df196cddf96f at opensips.org>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hi Andreas,
>
> You don;t have to change anything in the opensips script (for adding the
> pre-call media server), but only in the XML scenario.
>
> 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.
>
> Could you post your XML scenario ?
>
> Best regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
> OpenSIPS Bootcamp 2017, Houston, US
> http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
>
> On 06/13/2017 01:22 PM, Andreas Bøckmann wrote:
> > Hello
> >
> > I wanted to test the B2B script-scenario prepaid from the B2BUA
> tutorials.
> > The only change I wanted was to only invoke a MediaServer before
> > connecting the call to B-party.
> >
> > Note my OpenSIPS is running regular proxy/registrar functions besides
> B2B.
> >
> > The B2B is able to setup the call towards MediaServer and trigger on
> > receiving BYE.
> >
> > 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.
> >
> > I believe it's due to the B2B doing somethingsomething to my URIs
> > and/or CSEQs.
> >
> > My issue seems very much like something I found in a previous post
> > (https://opensips.org/pipermail/users/2010-February/010931.html) but
> > there was no final solution.
> >
> > I trigger this for the initial INVITE as such:
> >
> > if ($rU =~ "^\+1234567890.*") {
> >
> > # t_newtran is necessary because b2b should not handle
> > retransmissions.
> > if (!t_newtran()) {
> > sl_reply_error();
> > exit;
> > }
> >
> > xlog("L_WARN","B2BUA cid=$ci, Call from $fU to $rU initialized
> > as B2B\n");
> > b2b_init_request("freecall", "sip:+9999 at 1.2.3.4:5080
> > <http://sip:+9999@1.2.3.4:5080>");
> > exit;
> > }
> >
> > My B2B scenario file: https://pastebin.com/KwpgJziL
> >
> > 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?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170619/a276211f/attachment.html>
More information about the Users
mailing list