[Asterisk-Users] Macros and Redirect with Manager API

Ryan Courtnage ryan at voxbox.ca
Mon Apr 26 21:57:38 MST 2004


Hello all,

I've run into a problem redirecting calls using the Manager API:

Incoming (x100p) context rings SIP/2001 and is answered by someone.

---snip---
[from-pstn]
exten =>s,1,Dial(SIP/2001,15, tTr)
---snip---

Manager API is used to transfer the call to extension 3002 (zap)

---snip---
Action: Redirect
Channel: Zap/1-1
Exten: 3002
Priority: 1
---snip---

This actually works perfectly.

However, if the inbound context uses a Macro to perform the dialing, 
the manager Redirect command will not work:

---snip---
[macro-rg-inbound];
exten =>s,1,Dial(SIP/2001,${ARG1},${ARG2})

[from-pstn]
exten => s,1,Macro(rg-inbound,15,tTr)
---snip---

After issuing the 'Redirect' command in the Manager session, SIP/2001 
will be disconnected from the call, but 3002 never rings.  Odd thing is 
that the Manager session will report 'Success', 'Redirect successful' 
after issuing the 'Redirect' command is issued.

Why does using a macro cause the redirect to fail?

Thanks
Ryan

CVS-04/21/04 stable
Discovered issue using the Flash Operator Panel




More information about the asterisk-users mailing list