[asterisk-users] RES: RES: RES: How to invoke a binary file from the dial plan?

Kevin Larsen kevin.larsen at pioneerballoon.com
Wed Jun 3 10:26:27 CDT 2015


> Hi Kevin.
> 
> Thank you again for help me!
> 
> In my case,  in the final application for smartphones or in a 
> softphone for PCs, there will be a button on the GUI and the user 
> will have just to touch it, and the door or gate will open. I mean, 
> during an ongoing call, the callee will see a button in the 
> interface of its SIP application. For example, we can use the lib of
> Linphone and implement a GUI over it, having a new button to open 
> doors and gates. So, the callee will not have to remember about 
> codes, because there will be a button in someplace to be touched.
> 
> When the button be touched, during an ongoing call, the software 
> (SIP client) will sends a request to Asterisk executes the "gate => 
> 9,self/callee,System,<insert command here>" , for example. So, it 
> will works like the user pressing number 9.
> 
> I will take a look at applicationmap in features.conf to understand 
> what exactly can be done.
> 
> But, let me ask you:
> This idea seems to be good to run during ongoing calls. What about 
> moments when there is no ongoing call? That is, can Asterisk execute
> a dial plan (maybe by means of some kind of SIP request received 
> from the SIP client) even without establishing a call?

The way I would probably approach what you want to do is that the button 
action state would be dependent on if you are in a call or not. If you are 
in a call, it sends whatever DTMF digits you want to use for this feature. 
If you are not in a call, it could dial an extension whose purpose is to 
do the same thing. 

I have an outside number that when dialed checks that your caller id 
number is in an approved list and if it is, sends the gate open signal. 
This is the same gate open signal that the feature code uses (the call to 
System()), it is just reached by making a sip call. Nothing says a call 
has to connect two phones together. You can answer the call inside of 
Asterisk and do stuff based on what number you called or what digits the 
caller enters with their keypads. Lot's of opportunity to make the system 
do exactly what you want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150603/ddcdf50e/attachment.html>


More information about the asterisk-users mailing list