[Freeswitch-users] ESL API command and ringback

Peter van Raamsdonk peetzer at gmail.com
Wed Sep 19 10:01:23 MSD 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120919/32b41ee5/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/32b41ee5/attachment.gif 


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