[Freeswitch-users] Callback with bypass media
David Ponzone
david.ponzone at gmail.com
Thu Jun 10 13:10:03 PDT 2010
Vitalii,
You said you want to call both numbers via external provider.
So you want the media to flow from external provider to external
provider, not from SIP phone to SIP phone.
This should work, but I must admit I never did that with 2 outbound
legs.
If it doesn't, I would recommend you pastebin the conf and the trace
of a call attempt.
David Ponzone Direction Technique
email: david.ponzone at ipeva.fr
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis
à l'intention exclusive de ses destinataires. Toute utilisation ou
diffusion non autorisée est interdite. Tout message électronique est
susceptible d'altération. IPeva décline toute responsabilité au titre
de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes
pas destinataire de ce message, merci de le détruire immédiatement et
d'avertir l'expéditeur.
Le 10/06/2010 à 21:27, Vitalii Colosov a écrit :
> Hi,
> Could you please advice if this callback scenario can be achieved?
>
> Freeswitch calls one number via external provider.
> After it answered, it gets the digits and dials another number
> via external provider.
> After second phone is answered, it bridge both sessions.
>
> Is it possible that from this moment media will flow directly
> from one sip phone to another, bypassing freeswitch?
> And if yes, which command (in Lua preferably)?
>
>
>
> I tried to use the following code after getting the digits from
> first phone:
>
> ...
> calling_session:setVariable("bypass_media", "true");
> called_session = freeswitch.Session(some_called_string,
> calling_session);
> ...
>
>
> But as per log, the INVITE to the second phone contains FreeSWITCH's
> IP address in SDP section, and not first phone's IP address.
> Looks like bypass_media is not working as I would expect in this case.
>
>
>
> Thanks,
> Vitalie
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100610/f574b183/attachment.html
More information about the FreeSWITCH-users
mailing list