[asterisk-users] Reading DTMF sent by callee during a SIP call

Don Kelly dk at donkelly.biz
Fri Dec 20 10:58:55 CST 2013

Isn't it easier just to use a SIP door phone?





From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ishfaq Malik
Sent: Friday, December 20, 2013 10:31 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Reading DTMF sent by callee during a SIP call




On 20 December 2013 16:13, Alex <ralienpp at gmail.com> wrote:

Hi everyone,

I am looking for advice about the design of a SIP-based intercom. I
count on your help, as my current attempts are not fruitful (yet).

This will be a pretty long message, so here's my fundamental question:

Is there a way to interpret DTMF tones sent by the calee
(not the caller) while a voice call is in progress?

Here's the desired scenario:

- there is a box with speakers and a mic
- Asterisk is running on a computer inside that box
- the box is embedded in a door
- There are two user accounts, UserA and userB
- UserA is a client that runs on the server*
- UserA calls UserB and they are having a voice conversation

Throughout the call, Asterisk must react to DTMF tones sent by userB;
such that an action is executed when a specific key is pressed.

The idea is to build an intercom that would enable me to open a door
remotely, by relying entirely on SIP, so there would be no need to
have some additional communication channel to send the "open door"

I have previously implemented IVRs using `Background` and jumped to
specific extensions, when a button was pressed. But in that case, the
extensions are dialed by the caller; whereas now the input must from
the person who answered the call.

If I use `Dial` and `Read` - the latter is only executed after `Dial`
terminates - so this is not suitable.

`Background` behaves like I need - but it plays back a predefined
file, so it is not suitable for an interactive conversation.

* Having a SIP client on the same machine as the Asterisk server
itself is not possible, because both won't be able to bind to port
5060. My guess is that the solution is to originate a call from the
CLI; but I haven't gotten to that part yet.

Thank you for your patience, I am looking forward to your feedback,


You could create your own feature in features.conf that executes a
Macro/Gosub defined in sip.conf...





Ishfaq Malik 
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish at pack-net.co.uk
w: http://www.pack-net.co.uk
Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street 
Manchester, M1 2JW
COMPANY REG NO. 04920552
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20131220/2b58c090/attachment.html>

More information about the asterisk-users mailing list