Jeremy McNamara
2003-Oct-08  22:14 UTC
[Asterisk-Users] Generating a call with the Manager interface..
Log of real session:
[root@psycho root]# telnet localhost 5038
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/1.0
action: login
username: joe
secret: bob
Response: Success
Message: Authentication accepted
action: originate
exten: 200
context: stations
channel: SIP/jeremy@Jeremy7960
Event: Newchannel
Channel: SIP/Jeremy7960-376c
State: Down
Callerid: <unknown>
Uniqueid: 1066109610.410
Event: Newchannel
Channel: SIP/Jeremy7960-376c
State: Ringing
Callerid: <unknown>
Uniqueid: 1066109610.410
Event: Newstate
Channel: SIP/Jeremy7960-376c
State: Up
Callerid: <unknown>
Uniqueid: 1066109610.410
Response: Success
Message: Originate successfully queued
then extensions.conf might look like:
[stations]
exten => 200,1,Dial,IAX2/joe@bob/${EXTEN}
exten => 200,2, Hangup
Jeremy McNamara
WipeOut wrote:
> Hi,
>
> Currently I use "call files" to automate the generation of calls
from
> our address book and the resulting call file looks like this..
>
> Channel: SIP/201
> WaitTime: 30
> Application: Dial
> Data: CAPI/4567:5556789
> CallerID: Auto Dial <1000>
>
> This method works but it not logging the calls to the CDR and there 
> are a few other issues.. So I wanted to try and do the same thing 
> using the manager interface in Asterisk.. The problem is that the docs 
> are a little shy on details..
>
> Does anyone know how I can turn my call file sample into the manager 
> interface equivalent??
>
> My guess is something like..
>
> Action: Originate
> Channel: SIP/201
> Timeout: 30
> ??? (application line)
> ???(data line)
> CallerID: Auto Dial <1000>
>
> Thanks..
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
WipeOut
2003-Oct-13  02:11 UTC
[Asterisk-Users] Generating a call with the Manager interface..
Hi, Currently I use "call files" to automate the generation of calls from our address book and the resulting call file looks like this.. Channel: SIP/201 WaitTime: 30 Application: Dial Data: CAPI/4567:5556789 CallerID: Auto Dial <1000> This method works but it not logging the calls to the CDR and there are a few other issues.. So I wanted to try and do the same thing using the manager interface in Asterisk.. The problem is that the docs are a little shy on details.. Does anyone know how I can turn my call file sample into the manager interface equivalent?? My guess is something like.. Action: Originate Channel: SIP/201 Timeout: 30 ??? (application line) ???(data line) CallerID: Auto Dial <1000> Thanks..
Richard Lyman
2003-Oct-13  09:41 UTC
[Asterisk-Users] Generating a call with the Manager interface..
yes that will work, but remember, app/data do not create a pbx event. so as long as you don't have to toss it back into the extensions handling it should work fine. and yes, manager->originate->app/data came after the docs <G> WipeOut wrote:> > Hi, > > Currently I use "call files" to automate the generation of calls from > our address book and the resulting call file looks like this.. > > Channel: SIP/201 > WaitTime: 30 > Application: Dial > Data: CAPI/4567:5556789 > CallerID: Auto Dial <1000> > > This method works but it not logging the calls to the CDR and there are > a few other issues.. So I wanted to try and do the same thing using the > manager interface in Asterisk.. The problem is that the docs are a > little shy on details.. > > Does anyone know how I can turn my call file sample into the manager > interface equivalent?? > > My guess is something like.. > > Action: Originate > Channel: SIP/201 > Timeout: 30 > ??? (application line) > ???(data line) > CallerID: Auto Dial <1000> > > Thanks.. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users