[Freeswitch-users] Delayed DTMF events during gentones

Anthony Minessale anthony.minessale at gmail.com
Fri May 23 14:57:59 PDT 2008


see if just async and not async full works

On Fri, May 23, 2008 at 4:45 PM, Andy Spitzer <woof at pingtel.com> wrote:

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



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080523/3233e7d3/attachment-0002.html 


More information about the FreeSWITCH-users mailing list