[asterisk-users] Adding own info in AMI
Mir
michael.sysdba at gmail.com
Wed Sep 13 03:54:44 MST 2006
Hello (again)
When doing a STATUS request on the AMI, I get informations like these:
Event: Status
Privilege: Call
Channel: SIP/311-08b97790
CallerID: 310
CallerIDName: Aastra
Account:
State: Ringing
Uniqueid: 1157967815.19
My problem is that I want to tie my own information to a call,
actually to tie the number that the SIP extension has called. For some
reason this information is not available in the AMI, at least not in
the STATUS messages.
I discovered that I in the dialplan could set the Acoountcode to the
called number, and then get it shown in the STATUS messages, but this
of cause gives a lot of other problems.
Is it possible to for instance to set a uservariable in the dialplan,
and get it shown in the manager interface?
Something like:
Event: Status
Privilege: Call
Channel: SIP/311-08b97790
CallerID: 310
CallerIDName: Aastra
Account:
MyVariable: 12345678
State: Ringing
Uniqueid: 1157967815.19
Other good ideas are welcome :-)
Michael
More information about the asterisk-users
mailing list