see if just async and not async full works<br><br><div class="gmail_quote">On Fri, May 23, 2008 at 4:45 PM, Andy Spitzer <<a href="mailto:woof@pingtel.com">woof@pingtel.com</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;">
Woof!<br>
<div class="Ih2E3d"><br>
On Fri, 23 May 2008 17:13:59 -0400, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br>
<br>
> How are you calling the socket application for the outbound event<br>
> socket connection? If you put it in async you should get those events.<br>
<br>
</div>I've tried it various ways, but this is the one I'm currently using:<br>
<br>
<extension name="DIALTONE"><br>
<condition field="destination_number" expression="^DIALTONE$"><br>
<action application="socket" data="<a href="http://127.0.0.1:8084" target="_blank">127.0.0.1:8084</a> async full"/><br>
</condition><br>
</extension><br>
<br>
Using nc on port 8084, I get the DTMF events in real time before I call gentones--and after it finishes--but during the tone the DTMF events appear to be queued and only delivered once the gentones completes.<br>
<br>
For example (long responses truncated for clarity)<br>
<br>
$ nc -v -l <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> 8084<br>
Connection from <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> port 8084 [tcp/*] accepted<br>
connect<br>
<br>
Channel-Username: 207<br>
Channel-Dialplan: XML<br>
Channel-Caller-ID-Name: 207<br>
Channel-Caller-ID-Number: 207<br>
...<br>
<br>
myevents<br>
<br>
<br>
Content-Type: command/reply<br>
Reply-Text: +OK Events Enabled<br>
<br>
sendmsg<br>
call-command: execute<br>
execute-app-name: answer<br>
<br>
Content-Type: command/reply<br>
Reply-Text: +OK<br>
<br>
Content-Length: 3303<br>
Content-Type: text/event-plain<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/<a href="http://cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com" target="_blank">cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com</a><br>
Unique-ID: 85d100a8-46a6-4270-be3e-06159d5783c5<br>
Call-Direction: inbound<br>
...<br>
Event-Name: CHANNEL_EXECUTE<br>
...<br>
<br>
Content-Length: 3281<br>
Content-Type: text/event-plain<br>
<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/<a href="http://cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com" target="_blank">cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com</a><br>
Unique-ID: 85d100a8-46a6-4270-be3e-06159d5783c5<br>
...<br>
Event-Name: CHANNEL_ANSWER<br>
...<br>
<br>
Content-Length: 3323<br>
Content-Type: text/event-plain<br>
<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/<a href="http://cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com" target="_blank">cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com</a><br>
Unique-ID: 85d100a8-46a6-4270-be3e-06159d5783c5<br>
...<br>
Event-Name: CHANNEL_EXECUTE_COMPLETE<br>
...<br>
<br>
(Now I press the digit "*")<br>
Content-Length: 3288<br>
Content-Type: text/event-plain<br>
<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/<a href="http://cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com" target="_blank">cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com</a><br>
...<br>
DTMF-Digit: *<br>
DTMF-Duration: 2000<br>
Event-Name: DTMF<br>
...<br>
<br>
(Now I start a 10 second tone, and press the digit "0" shortly after it starts)<br>
<div class="Ih2E3d">sendmsg<br>
call-command: execute<br>
execute-app-name: gentones<br>
execute-app-arg: %(10000, 0, 350, 440)<br>
<br>
</div>Content-Type: command/reply<br>
Reply-Text: +OK<br>
<br>
Content-Length: 3338<br>
Content-Type: text/event-plain<br>
<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/<a href="http://cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com" target="_blank">cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com</a><br>
Unique-ID: 85d100a8-46a6-4270-be3e-06159d5783c5<br>
...<br>
Application: gentones<br>
Application-Data: %25(10000,%200,%20350,%20440)<br>
Event-Name: CHANNEL_EXECUTE<br>
...<br>
<br>
(Nothing happens here for 10 seconds)<br>
<br>
Content-Length: 3347<br>
Content-Type: text/event-plain<br>
<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/<a href="http://cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com" target="_blank">cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com</a><br>
Unique-ID: 85d100a8-46a6-4270-be3e-06159d5783c5<br>
Application: gentones<br>
Application-Data: %25(10000,%200,%20350,%20440)<br>
Event-Name: CHANNEL_EXECUTE_COMPLETE<br>
...<br>
Event-Date-timestamp: 1211578728120470<br>
...<br>
<br>
(And now immediately after the gentones is complete, comes the report of the digit I pressed 9 seconds ago)<br>
Content-Length: 3288<br>
Content-Type: text/event-plain<br>
<br>
Channel-State: CS_EXECUTE<br>
Channel-State-Number: 4<br>
Channel-Name: sofia/<a href="http://cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com" target="_blank">cdhcp151.pingtel.com/207%40cdhcp151.pingtel.com</a><br>
Unique-ID: 85d100a8-46a6-4270-be3e-06159d5783c5<br>
...<br>
DTMF-Digit: 0<br>
DTMF-Duration: 2000<br>
Event-Name: DTMF<br>
...<br>
Event-Date-timestamp: 1211578728120470<br>
...<br>
<div><div></div><div class="Wj3C7c"><br>
--Woof!<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