[Asterisk-Users] Manager logic to pickup a ringing extension
Adam Goryachev
mailinglists at websitemanagers.com.au
Thu Jun 10 16:07:35 MST 2004
On Fri, 2004-06-11 at 05:59, Nik Martin wrote:
> Can the Manager Redirect command transfer a ringing SIP extension? I'm
> trying to implement a Camp On feature, and having failed to do it in Dial
> Plan logic, am trying to do it with manager logic. If an arbitrary Sip
> extension is ringing, I need the ability to pick up that extension from any
> other phone. What little docs there are on Manager commands shows Redirect
> takes these parameters:
>
> Action: Redirect
> Channel: Zap/1-1
> Context: transfer
> Exten: 5555555555
> Priority: 1
>
> If I'm at Sip channel Sip/nmartin (extension 101), and the phone ringing is
> Sip/Foodaddy (extension 100), It doesn't seem possible to get that call
> transferred TO my extension, using the example context that accompanies the
> Redirect sample on the WIKI:
>
> [transfer]
> exten => _.,1,Dial(Zap/g1/${EXTEN})
> It doesn't look dooable.
Better is to transfer the leg of the call which is causing the SIP phone
to register:
Call comes in on Zap/1-1 and walks the dialplan until it gets to:
Dial(SIP/Foodaddy)
So you send the manager command:
Action: Redirect
Channel: Zap/1-1
Context: mycontext
Exten: 101
Priority: 1
Regards,
Adam
More information about the asterisk-users
mailing list