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