[Asterisk-Users] Manager API and extension s

NRB nrb at dantronic-engineering.dk
Fri Oct 15 06:34:47 MST 2004


Hi all

When calls are set up using a macro, the extension in the status events coming from "action: status" shows "s". Does anybody know what to do to make the extension show the correct value ?

My dialplan is like this:

[local]
exten => 8056,1,Macro(standardcall,SIP/t8)
exten => 8057,1,Macro(standardcall,SIP/t9)

[macro-standardcall]
exten => s,1,Dial(${ARG1},30,t)
exten => s,2,Voicemail(u${MACRO_EXTEN})
exten => s,3,Hangup
exten => s,102,Voicemail(b${MACRO_EXTEN})
exten => s,103,Hangup


The status events are like this:
Event: Status
Channel: SIP/t8-549b
CallerID: "User #7" <8057>
Account:
State: Up
Link: SIP/t9-72fe
Uniqueid: 1097738542.23

Event: Status
Channel: SIP/t9-72fe
CallerID: "User #7" <8057>
Account:
State: Up
Context: macro-standardcall
Extension: s
Priority: 1
Seconds: 3
Link: SIP/t8-549b
Uniqueid: 1097738542.22

Thanks in advance

Martin







More information about the asterisk-users mailing list