On 1/29/07, Dominik Zalewski <[EMAIL PROTECTED]> 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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to