Dominik Zalewski
2007-Jan-29 05:57 UTC
[asterisk-users] Pickup() ringing extension and call waiting
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' Also, Call waiting seems to not work. While having a conversation I hear "beep" in my phone but the M2 (second line) button doesn't blink so I can not pickup second call and put first one on hold. from my zapata.conf: [channels] signalling=fxs_ks echocancel=yes echocancelwhenbridged=yes echotraining=400 rxgain=0.0 txgain=0.0 callerid=asreceived usecallerid=no hidecallerid=no threewaycalling=yes transfer=yes callwaiting=yes cancallforward=yes ;;hanguponpolarityswitch busydetect=yes faxdetect=both group=1 callgroup=1 pickupgroup=1 context=incoming channel => 3 ;;channel => 4 ;; no line yet Any ideas? Thank you in advance, Dominik
Steve Davies
2007-Jan-29 06:20 UTC
[asterisk-users] Pickup() ringing extension and call waiting
On 1/29/07, Dominik Zalewski <dzalewski@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
Steve Davies
2007-Jan-29 06:25 UTC
[asterisk-users] Pickup() ringing extension and call waiting
On 1/29/07, Dominik Zalewski <dzalewski@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. > > Call waiting seems to not work. While having a conversation I hear "beep" in > my phone but the M2 (second line) button doesn't blink so I can not pickup > second call and put first one on hold.<disclaimer>I have never used D-Link SIP phones</disclaimer> Where there is only one SIP registration on the phone, Asterisk cannot have any control over the presentation of lights on the phone - This is entirely up to the handset to manage. One potential workaround is to provide multiple SIP logins (one per line) and arrange for asterisk to call the second line if the first is busy (use incoming_limit SIP settings perhaps?). This may or may not have the desired effect on that phone model. Cheers, Steve
Tomislav ParĨina
2007-Feb-08 01:47 UTC
[asterisk-users] Re: Pickup() ringing extension and call waiting
In article <200701291536.11906.dzalewski@open-craft.com>, dzalewski@open-craft.com says...> 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.Hi Dominik! Information's on that page are wrong. Read this: pbx*CLI> show application Pickup pbx*CLI> -= Info about application 'Pickup' =- [Synopsis] Directed Call Pickup [Description] Pickup(extension[@context]): This application can pickup any ringing channel that is calling the specified extension. If no context is specified, the current context will be used. So, if application Pickup isn't in same context with Dial which you are trying to pickup, then you have to specify context. Hope this helps. -- Tomislav Parcina ime.prezime@email.t-com.hr