I execute the following code in a shell, it is an originate action :
open localhost 5038 Action: Login UserName: asterisk Secret: asterisk ACTION: Originate Channel: SIP/2614 Exten: 992614 Priority: 1 Context: from-internal Callerid: Caller ActionID: id
The action works, SIP/2614 is an extension who call a softphone and 992614 is an application, where 99xxxx is routed to.
My problem : in my application, I would like to get the number of the extension (in my example, 2614 or SIP/2614) but I don’t know how to configure the originate action, I get “Unknown”. When I call the application with a softphone, it works, I get “2614” (I logged the softphone with it).
I am running Asterisk 1.4.12 on Linux.
Thanks for your help;