[Freeswitch-dev] DTMF events
Rob Charlton
rob.charlton at savageminds.com
Wed Jan 21 07:53:41 PST 2009
Yes, and yes. I see the DTMF events arriving when I make an incoming call.
I put a breakpoint on switch_channel_dequeue_dtmf() which gets hit when
I type digits after:
- I originate a call to a sip extension
- I receive a call from a sip extension
- I receive a call from our sip trunk (from PSTN)
The breakpoint doesn't get hit when I type digits after:
- I originate a call via our sip trunk (to the PSTN)
As regards this:
> In the latter case, I am still able to pick up DTMF digits if I use
> javascript session.collectInput() - so it appears as if the DTMF tones
> are being recognised by Freeswitch, but no events sent.
I must have been dreaming - that isn't the case at all -
session.collectInput doesn't get any digits at all.
We use the same SIP trunk with asterisk and that _does_ pick up DTMF
tones for outbound PSTN calls.
Thanks
Rob
Anthony Minessale wrote:
> Did you try enabling all events and making a single call to make sure
> you are subscribed to the right event?
>
>
> On Wed, Jan 21, 2009 at 6:38 AM, Rob Charlton
> <rob.charlton at savageminds.com <mailto:rob.charlton at savageminds.com>>
> wrote:
>
> Hi,
>
> I'm using mod_event_socket to listen for DTMF events. I have Nokia
> handsets registered as SIP clients over Wifi, as well as a SIP trunk
> providing incoming PSTN calls to a range of DDIs and outgoing PSTN
> calls.
>
> If I make an incoming (PSTN or SIP) call and answer it, I always see
> DTMF events via mod_event_socket.
> If I make an outgoing call direct to a handset using SIP then I
> see DTMF
> events - e.g. originate user/1000 &park()
> If I make an outgoing call via PSTN then I don't see DTMF events e.g.
> originate sofia/gateway/mygateway/myphonenumber &park() or
> &javascript(myscript.js);
>
> In the latter case, I am still able to pick up DTMF digits if I use
> javascript session.collectInput() - so it appears as if the DTMF tones
> are being recognised by Freeswitch, but no events sent.
>
> What am I doing wrong?
>
> Cheers
>
> Rob
>
> --
> Rob Charlton
> Savage Minds Ltd
>
More information about the Freeswitch-dev
mailing list