[asterisk-dev] Need help in how to originate call from c to
asterisk ie controlling asterisk cli commands through c.
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sun Nov 19 04:00:05 MST 2006
On Thu, Nov 16, 2006 at 03:00:55PM +0000, rajesh singh wrote:
>
>
> Hi
>
> I m trying to interface asterisk with c for
> controlling their cli through c but only i can start
> the asterisk server through using execv after that c
> cant execute command to asterisk.
>
The code of the Asterisk CLI handling (the remote part) is in various
files in main/ . Mostly asterisk.c itself. When you run 'asterisk -r'
asterisk connects via a unix domain socket (asterisk.ctl). So it is
basically possible to reimplement it with a different program to command
Asterisk. However:
A better documented interface with similar functionality is the Asterisk
Manager Interface, to which you connect throuch a standard TCP socket on
port 5038 (by default). You should be able to issue CLI commands and get
notified of events through it.
In short, the functionality you need is probably already there. Try
asking in the -users list if youi still have problems.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir at jabber.org
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-dev
mailing list