Given that I'm using Java, I had to escape the ringback value's quote twice:

originate {ringback=\\'%(2000,4000,440.0,480.0)\\'}sofia/internal/1004%74.63.243.52 &bridge(sofia/internal/1005%74.63.243.52)


On Sun, Jan 17, 2010 at 3:51 PM, Max Bridgewater <max.bridgewater@gmail.com> wrote:
One more piece of information: the call is being terminated by Freeswitch with the event:

Event-Name: CHANNEL_HANGUP
Hangup-Cause: NO_ANSWER

Which is strange because B leg doesn't even have the time to answer.



On Sun, Jan 17, 2010 at 1:55 PM, Max Bridgewater <max.bridgewater@gmail.com> wrote:
Hi,

The following command works great from the command line:
originate {ringback=\'%(2000,4000,440.0,480.0)\'}sofia/internal/1004%74.63.243.52 &bridge(sofia/internal/1005%74.63.243.52)

But this one isn't working from the ESL:
api originate {ringback=\'%(2000,4000,440.0,480.0)\'}sofia/internal/1004%74.63.243.52 &bridge(sofia/internal/1005%74.63.243.52)

The observed behavior is following: The A leg is dialed, then B leg is also dialed but immediately followed by a hangup. That is, the B user doesn't even has time to answer.

Any idea what I'm doing wrong?

Thanks,
Max.