Given that I'm using Java, I had to escape the ringback value's quote twice:<br><br>originate {ringback=\\'%(2000,4000,440.0,480.0)\\'}sofia/internal/1004%74.63.243.52 &bridge(sofia/internal/1005%74.63.243.52)<br>
<br><br><div class="gmail_quote">On Sun, Jan 17, 2010 at 3:51 PM, Max Bridgewater <span dir="ltr"><<a href="mailto:max.bridgewater@gmail.com">max.bridgewater@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
One more piece of information: the call is being terminated by Freeswitch with the event: <br><br>Event-Name: CHANNEL_HANGUP<br>Hangup-Cause: NO_ANSWER<br><br>Which is strange because B leg doesn't even have the time to answer.<div>
<div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Sun, Jan 17, 2010 at 1:55 PM, Max Bridgewater <span dir="ltr"><<a href="mailto:max.bridgewater@gmail.com" target="_blank">max.bridgewater@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
The following command works great from the command line:<br>
originate {ringback=\'%(2000,4000,440.0,480.0)\'}sofia/internal/1004%74.63.243.52 &bridge(sofia/internal/1005%74.63.243.52)<br>
<br>
But this one isn't working from the ESL:<br>
api originate
{ringback=\'%(2000,4000,440.0,480.0)\'}sofia/internal/1004%74.63.243.52
&bridge(sofia/internal/1005%74.63.243.52)<br>
<br>
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.<br>
<br>
Any idea what I'm doing wrong?<br>
<br>
Thanks,<br><font color="#888888">
Max.
</font></blockquote></div><br>
</div></div></blockquote></div><br>