[asterisk-users] AMI initiate call probs
Niklas Larsson
pnsystem at comhem.se
Tue Aug 22 07:55:37 MST 2006
I'm using AMI to initiate a call, first calling the agent and when he picks up, the call is placed to the customer. The prob is if the user rejects the call (or they don't have cw...), the call is still placed to the customer...
I havn't found a variable that tells me that the first leg is still up.
Anybody with an idea?
This is what i send to AMI:
Action: Originate
Channel: Local/8542 at from-internal
Context: from-turbo
Async: yes
Variable: ext_turbo=8542
Exten: 0703123456
Priority: 1
Timeout: 30000
Callerid: "Turbo" <06012345678>
And this is the extension.conf:
[from-turbo]
exten => _x.,1,Set(CALLERID(name)=${DB(AMPUSER/${ext_turbo}/cidname)})
exten => _x.,n,Set(CALLERID(num)=${DB(AMPUSER/${ext_turbo}/outboundcid)})
exten => _x.,n,NoOp(CID: ${CALLERID(all)} ext_turbo ${ext_turbo} nr ${EXTEN})
exten => _x.,n,Dial(Local/${EXTEN}@from-internal)
exten => _x.,t,Hangup
exten => _x.,i,Hangup
More information about the asterisk-users
mailing list