[asterisk-users] Pickup() ringing extension and call waiting

Dominik Zalewski dzalewski at open-craft.com
Mon Jan 29 06:36:11 MST 2007


On Monday 29 January 2007 03:20:16 pm Steve Davies wrote:
> On 1/29/07, Dominik Zalewski <dzalewski at open-craft.com> wrote:
> > Hi All,
> >
> > I'm using Asterisk 1.2.14 under openSuSE 10.2 with kernel 2.6.18. I have
> > Wildcard TDM400P card and D-Link DPH-120S and DPH-140S SIP phones. I
> > would like to be able to pickup ringing extention from any SIP phone
> > using Pickup() application.
> >
> > from my dial plan:
> >
> > [incoming]
> > exten => s,1,Dial(SIP/somebody1|60|tTrR)
> >
> >
> > [internal]
> > include => outbound-local
> > include => parkedcalls
> >
> > exten => 200,1,Dial(SIP/somebody1|20|tTrR)
> > exten => 201,1,Dial(SIP/somebody2|20|tTrR)
> > exten => 202,1,Dial(SIP/somebody3|20|tTrR)
> >
> > exten => _8.,1,Pickup(${EXTEN:1})
> >
> > [outbound-local]
> > ignorepat => 9
> > exten => _9XXX,1,Dial(Zap/g1/${EXTEN:1}|60|tT)
> > exten => _9XXXXX,1,Dial(Zap/g1/${EXTEN:1}|60|tT)
> > exten => _9ZXXXXXX,1,Dial(Zap/g1/${EXTEN:1}|60|tT)
> >
> >
> > When there is incoming call and extension 200 rings, I press 8200 to
> > pickup a call and I get disconnected.
> >
> > here is debug from asterisk CLI:
> >
> >   -- Starting simple switch on 'Zap/3-1'
> >   -- Executing Dial("Zap/3-1", "SIP/somebody1|60|tTrR") in new stack
> >   -- Called somebody1
> >   -- SIP/somebody1-081bea58 is ringing
> >   -- Executing Pickup("SIP/somebody3-081b3cd8", "200") in new stack
> >  == Spawn extension (internal, 8200, 1) exited non-zero
> >  on 'SIP/somebody3-081b3cd8'
>
> Pickup works on a channel, not on an extension number, so in the above
> example you effectively execute
>   Pickup(200)
> but need to have mapped the 200 so that you do
>   Pickup(SIP/somebody1)
>
> Regards,
> Steve

What do you mean by mapping the 200 ?

In this example I can pickup any ringing extension:
http://www.voip-info.org/wiki/view/Asterisk+cmd+Pickup

"If phone with number 42 rings you can catch the call by dialing 742. You 
don't need to use the context"

exten => _7.,1,Pickup(${EXTEN:1}) works for all contexts.

Regarding call waiting, internally when I'm having a conversation and someone 
calls me, then my second line button blinks and I can pickup a second call 
putting first one on hold. Problem just with "real" call waiting from PSTN.

Thanks,

	Dominik


More information about the asterisk-users mailing list