try to replace "ring_ready" with "pre_answer"<br><br>if your phone does not support early media you will not be able to generate inband indication.<br><br>ring_ready is a an app that sends a out of band ringing indication so in the case of SIP it <br>
will generate a 180 ringing which will make most devices send a ringback sound.<br><br><br><div class="gmail_quote">On Mon, Jun 23, 2008 at 8:38 PM, Klaus Teller <<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm trying the third variant without much success. Here is what i do:<br>
<br>
<br>
session.execute("ring_ready");<br>
session.execute("set","ringback=%(2000,4000,440,480)");<br>
session.execute("set", "transfer_ringback=%(2000,4000,440,480)");<br>
<br>
The main problem i have is that there is no tone at all. No dial tone, and no ring tone. Any wrong with this code?<br>
<div class="Ih2E3d"><br>
Thanks,<br>
Klaus L'Imbecile.<br>
<br>
<br>
-------- Original-Nachricht --------<br>
</div>> Datum: Mon, 23 Jun 2008 08:45:56 -0500<br>
> Von: "Anthony Minessale" <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>><br>
<div class="Ih2E3d">> An: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Betreff: Re: [Freeswitch-users] Non Blocking Teletone (Background Audio)<br>
<br>
</div><div><div></div><div class="Wj3C7c">> In order to do 2 things at once like that you need 2 threads.<br>
> Here are your options:<br>
><br>
> 1) Use outbound mode of mod_event_socket to connect to a tcp port and<br>
> control the call from there.<br>
> 2) Use the jsrun api call to launch another js in it's own thread and then<br>
> uuid_bridge the channels.<br>
> 3) *Easiest* set the ringback variable on the A leg to the teletone script<br>
> of choice or path to an audio file so when you dial B the A will hear it.<br>
><br>
> On Sun, Jun 22, 2008 at 9:49 PM, Klaus Teller <<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>><br>
> wrote:<br>
><br>
> > Hi Folks,<br>
> ><br>
> > I was was wondering if it's possible to play a teletone in a<br>
> non-blocking<br>
> > way.<br>
> ><br>
> > What I want to achieve is following:<br>
> ><br>
> > 1) Party A calls to my FS box,<br>
> > 2) A Javascript script picks up the call<br>
> > 3) The script generates a teletone to party A.<br>
> > 4) Then the script starts some processing while A is on hold listening<br>
> for<br>
> > the teletone (or any other audio?)<br>
> > 5) The script dials some other party B<br>
> > 6) Party B picks up<br>
> > 7) Script stops the teletone being played to A<br>
> > 8) Script bridges A and B.<br>
> ><br>
> > As far as I could experiment with teletone.generate, the execution of<br>
> the<br>
> > script is paused when the teletone is played to the near end (Party A).<br>
> ><br>
> > I would love if you could help me with this.<br>
> ><br>
> > Thanks,<br>
> > Klaus L'Imbecile.<br>
> ><br>
> ><br>
> > --<br>
> > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!<br>
> > Ideal für Modem und ISDN: <a href="http://www.gmx.net/de/go/smartsurfer" target="_blank">http://www.gmx.net/de/go/smartsurfer</a><br>
> ><br>
> > _______________________________________________<br>
> > Freeswitch-users mailing list<br>
> > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
><br>
> AIM: anthm<br>
</div></div>> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a> <<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com">PAYPAL%3Aanthony.minessale@gmail.com</a>><br>
<div class="Ih2E3d">> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
><br>
> FreeSWITCH Developer Conference<br>
</div>> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a> <<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
<div class="Ih2E3d">> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
</div>> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org">googletalk%3Aconf%2B888@conference.freeswitch.org</a>><br>
> pstn:213-799-1400<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="Wj3C7c">Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!<br>
Ideal für Modem und ISDN: <a href="http://www.gmx.net/de/go/smartsurfer" target="_blank">http://www.gmx.net/de/go/smartsurfer</a><br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400