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

Rodrigo Pimenta Carvalho pimenta at inatel.br
Wed Jun 3 11:43:54 CDT 2015


Ok Kevin.

Thank you for the information.
Now, I will try to build a prototype to see how everything works. If I have a new doubt, I will post it here.

Best regards.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
________________________________________
De: asterisk-users-bounces at lists.digium.com [asterisk-users-bounces at lists.digium.com] em Nome de Kevin Larsen [kevin.larsen at pioneerballoon.com]
Enviado: quarta-feira, 3 de junho de 2015 12:26
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Assunto: Re: [asterisk-users] RES: RES: RES: How to invoke a binary file from the dial plan?

> 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.



More information about the asterisk-users mailing list