[Freeswitch-users] ESL API command and ringback

Michael Collins msc at freeswitch.org
Wed Sep 19 20:36:27 MSD 2012


I think you're correct to use ringback and ring_ready together. Set the
ringback variable and then execute the ring_ready app and you should be
golden.
-MC

On Tue, Sep 18, 2012 at 11:01 PM, Peter van Raamsdonk <peetzer at gmail.com>wrote:

> Hi again [?],
>
> Simple question,
>
> In the dialplan there is a Local_Extension to handle calls.
>
> In this example, you have an action;
>
> *<action application="set" data="ringback=${us-ring}"/>*
>
> As api command (from ESL java outbound example) I put this like;
>
>
> String result = doAction(
> "global_getvar", "us-ring");// using CLI (inbound), result  *
> %(2000,4000,440,480)* as defined in vars.xml
>
> SendMsg sendMsg =
> *new* SendMsg();
>
> sendMsg.addCallCommand(
> "execute");
>
> sendMsg.addExecuteAppName(
> "set");
>
> sendMsg.addExecuteAppArg(
> "ringback=" + result);
>
> but I don't hear sound. I don't know if the string
> argument "${us-string}", can be parsed directly.
>
> I tried everything but no sound.
>
> Only thing that I got working is by using "execute" and "ring_ready"
>
> What I'm doing wrong with ringback argument?
>
> Kind regards,
>
> Peter
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120919/154e5da1/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 96 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120919/154e5da1/attachment.gif 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list