[Freeswitch-users] javascript bridge

Stephen Cattaneo stephen at mymessage.us
Wed Jun 9 07:06:44 PDT 2010


thank you for the responses. I will try these different methods.


Thanks,
Stephen C
-All of my email addresses go to the same place
-Save Paper, think before you print



On Tue, Jun 8, 2010 at 1:32 PM, Samuel Macedo <macedoslm at gmail.com> wrote:

> Have you had any success with this bridge code?
> Because I've had the same problem and my solution was:
>
> callee_dialstring = "{ignore_early_media=true,leg=2}sofia/user/XXX";
> session.execute('bridge', callee_dialstring);
>
> The problem here is that you have to establish the first leg before you can
> dial the second number.
>
> Regards,
> --
> Samuel Macedo
>
> On 7 June 2010 18:58, Michael Collins <msc at freeswitch.org> wrote:
>
>> I take it that this js is being called from the dialplan? If so then do
>> what you need to do with outsession before you bridge it. Or consider using
>> ESL and making a socket-based control program where you have much more
>> flexibility...
>>
>> -MC
>>
>> On Sun, Jun 6, 2010 at 11:55 AM, stephen at stephenjc <
>> stephen at stephenjc.com> wrote:
>>
>>> I have the following code, and after the bridge the javascript seems to
>>> stop.
>>>
>>>  outsession = new
>>> Session("{ringback=\'%(2000,4000,440.0,480.0)\',instant_ringback=true,ignore_early_media=false}sofia/gateway/"
>>> + providerhash["providername0"] + "/XXXXXXXXXXXX");
>>> bridge(session,outsession);
>>> while(outsession.ready())
>>> {
>>> console_log("notice","ping");
>>> }
>>>
>>> I am looking to manage the b leg, should i use execute_on_answer instead?
>>> or is there a way to make the code continue after the bridge.
>>>
>>> Thanks,
>>> Stephen C
>>> -All of my email addresses go to the same place
>>> -Save Paper, think before you print
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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/20100609/35045bd0/attachment.html 


More information about the FreeSWITCH-users mailing list