[Freeswitch-users] Need to fake ringback

Nicolas Brenner nicolas at medularis.com
Sat Jan 9 04:46:45 PST 2010


Thanks!

I thought I was doing exactly the same, but I was creating the 2nd
session like this:

session2 = new Session(ostr2); // ostr is the corresponding originate command

So it was missing the "link" to the first leg. Doing it like this solved it:

session2 = new Session(ostr2, session1);

Now it works great!



On Fri, Jan 8, 2010 at 11:46 PM, Anthony Minessale
<anthony.minessale at gmail.com> wrote:
> ringback variable must be set on the originating leg (the A leg aka inbound
> leg of the call)
> then that channel must be provided as the 2nd arg to the session constructor
> after the dial string or used with bridge.
>
> session.setVariable("ringback", "%(2000,4000,440,480)");
> session.execute("bridge", "sofia/internal/foo at bar.com");
>
> or
> // passing session as the 2nd arg allows the ringback to play on session
> while session2 is established.
> session2 = new Session("sofia/internal/foo at bar.com", session);
> bridge(session, session2); //or whatever
>
>
> On Fri, Jan 8, 2010 at 1:02 PM, Nicolas Brenner <nicolas at medularis.com>
> wrote:
>>
>> I'm using the default dialplan.
>>
>>
>> On Fri, Jan 8, 2010 at 4:02 PM, Nicolas Brenner <nicolas at medularis.com>
>> wrote:
>> > Not that I'm aware.
>> >
>> >
>> > On Fri, Jan 8, 2010 at 11:41 AM, Brian West <brian at freeswitch.org>
>> > wrote:
>> >> Are you using proxy media?
>> >>
>> >> /b
>> >>
>> >> On Jan 7, 2010, at 11:33 PM, Nicolas Brenner wrote:
>> >>
>> >>> I'm trying to fake a ringback for leg1 of a two-legged call without
>> >>> success.
>> >>
>> >>
>> >> _______________________________________________
>> >> 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
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org
> pstn:+19193869900
>
> _______________________________________________
> 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
>
>




More information about the FreeSWITCH-users mailing list