Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
pimenta at inatel.br
Guest





PostPosted: Tue Jun 02, 2015 3:21 pm    Post subject: [asterisk-users] How to invoke a binary file from the dial p Reply with quote

Hi everyone.

I'm new with Asterisk and I have to create a dial plan that will invoke a binary code. That is, asterisk will execute a program in the same machine. How to do it?

Let me explain what I have to do:

In the project that I am currently working, there is smartphones, SIP servers and doors/gates to be unlocked remotely. When the user executes an application on his/her phone, it will presents a button to unlock a remote gate or door.
By pressing such button, the application will send a SIP INVITE to the SIP server (Asterisk). In this moment, a existing dial plan should call an executable hosted in the current machine. In this case I need to know how to program my extensions.conf to let Asterisk invoke another software to me.
The another software is the one responsible for unlocking a gate or door.

So, how to codify my extensions.conf in order to make Asterisk invoke another software?
Is another better way (idea) to implement my project using Asterisk and SIP? If so, comment, please!

Any hint will be very helpful!

Best regards.

RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
kevin.larsen at pionee...
Guest





PostPosted: Tue Jun 02, 2015 3:31 pm    Post subject: [asterisk-users] How to invoke a binary file from the dial p Reply with quote

Quote:
Hi everyone.

I'm new with Asterisk and I have to create a dial plan that will
invoke a binary code. That is, asterisk will execute a program in
the same machine. How to do it?

Let me explain what I have to do:

In the project that I am currently working, there is smartphones,
SIP servers and doors/gates to be unlocked remotely. When the user
executes an application on his/her phone, it will presents a button
to unlock a remote gate or door.
By pressing such button, the application will send a SIP INVITE to
the SIP server (Asterisk). In this moment, a existing dial plan
should call an executable hosted in the current machine. In this
case I need to know how to program my extensions.conf to let
Asterisk invoke another software to me.
The another software is the one responsible for unlocking a gate or door.

So, how to codify my extensions.conf in order to make Asterisk
invoke another software?
Is another better way (idea) to implement my project using Asterisk
and SIP? If so, comment, please!

Any hint will be very helpful!

Look into the System() dialplan application. It will execute a command on the system for you. Be aware that it will execute it as the user your Asterisk instance is running as, so permissions can sometimes be a bit finicky to get correct. I do something similar to pop my gate open. It is using nc to make a connection to the device, but same general idea as what you are doing.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services