[Asterisk-Users] Zap and call pickup -- it don't work.

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Tue Jun 1 14:07:00 MST 2004


On Tuesday 01 June 2004 15:33, Andrew Kohlsmith wrote:
> The problem:   T100P connected to an Adit600.  Channel 1-16 are FXS, 17-24
> FXO.  I have Zap/24 in callgroup 3 and Zap/1-16 in pickupgroup 3.  When a
> call comes in on Zap/24 I cannot pick it up with *8 from Zap/1-16.

Some more debugging info:
- upgraded to CVS HEAD as of today around 4pm EDT
- mangled res_parking to give some more debuggery, in which I found something 
interesting when working with James:

(again, incoming call is ringing Zap/24-1, I pick up Zap/2-1 and dial *8)

Jun  1 16:41:55 DEBUG[213006]: Exception on 35, channel 24
Jun  1 16:41:55 DEBUG[213006]: Got event Ring/Answered(2) on channel 24 (index 
0)
Jun  1 16:41:58 DEBUG[229391]: DTMF digit: * on Zap/2-1
Jun  1 16:41:58 DEBUG[229391]: DTMF digit: 8 on Zap/2-1
Jun  1 16:41:58 DEBUG[229391]: Enabled echo cancellation on channel 2
Jun  1 16:41:58 DEBUG[229391]: ast_pickup_call(Zap/2-1):
Jun  1 16:41:58 DEBUG[229391]:                     cur->name: Zap/2-1
Jun  1 16:41:58 DEBUG[229391]:                     cur->pbx: false
Jun  1 16:41:58 DEBUG[229391]:                     cur->callgroup: 2
Jun  1 16:41:58 DEBUG[229391]:                     chan->pickupgroup: 2
Jun  1 16:41:58 DEBUG[229391]:                     chan->pickupgroup & 
cur->callgroup: True
Jun  1 16:41:58 DEBUG[229391]:                     cur->state: 1
Jun  1 16:41:58 DEBUG[229391]: ast_pickup_call(Zap/2-1):
Jun  1 16:41:58 DEBUG[229391]:                     cur->name: IAX2[ak_home]/3
Jun  1 16:41:58 DEBUG[229391]:                     cur->pbx: false
Jun  1 16:41:58 DEBUG[229391]:                     cur->callgroup: 0
Jun  1 16:41:58 DEBUG[229391]:                     chan->pickupgroup: 2
Jun  1 16:41:58 DEBUG[229391]:                     chan->pickupgroup & 
cur->callgroup: False
Jun  1 16:41:58 DEBUG[229391]:                     cur->state: 5
Jun  1 16:41:58 DEBUG[229391]: ast_pickup_call(Zap/2-1):
Jun  1 16:41:58 DEBUG[229391]:                     cur->name: Zap/24-1
Jun  1 16:41:58 DEBUG[229391]:                     cur->pbx: true
Jun  1 16:41:58 DEBUG[229391]:                     cur->callgroup: 0
Jun  1 16:41:58 DEBUG[229391]:                     chan->pickupgroup: 2
Jun  1 16:41:58 DEBUG[229391]:                     chan->pickupgroup & 
cur->callgroup: False
Jun  1 16:41:58 DEBUG[229391]:                     cur->state: 4
Jun  1 16:41:58 DEBUG[229391]: No call pickup possible...
Jun  1 16:41:58 DEBUG[229391]: No call pickup possible...

Now I see two immediate problems:

Problem #1. The call groups and pickup groups are all wrong.  My zapata.conf 
looks like this:

[channels]
context=fxs

;switchtype=national
;pridialplan=national
;overlapdial=no
signalling=fxo_ks

usecallerid=yes
callwaiting=yes
callwaitingcallerid=yes

rxwink=300              ; Atlas seems to use long (250ms) winks
hidecallerid=no
threewaycalling=yes
transfer=yes
cancallforward=no
callreturn=no

;mailbox=1234

echocancel=32
echocancelwhenbridged=no
echotraining=yes
relaxdtmf=no

;rxgain=1.0
;txgain=0.75

group=1
callgroup=1
pickupgroup=1
immediate=no
callerid="Benshaw VOIP" <(xxx) xxx-xxxx>
channel => 1-16

context=fxo
callerid=asreceived
signalling=fxs_ks
transfer=no
group=2
callgroup=2
pickupgroup=2
echocancel=128
echocancelwhenbridged=yes
echotraining=yes
callprogress=no
channel => 17-23

context=in_1234567
callerid=asreceived
group=3
callgroup=1
callprogress=no
channel => 24

So why the hell is Zap/24-1 in callgroup 0 and Zap/2-1 in pickupgroup 2?  I 
realize they're bit fields but it doesn't make sense since in zapata.conf 
24's callgroup == 1-16's pickupgroup...  the bitmaps should be the same.

Problem #2 is that Zap/24-1's pbx flag is set.  I will never be able to pick 
it up, even if its callgroup matches the pickupgroup of the channel I'm 
using.

Now in my extensions.conf, context in_1234567 has an 's' extension -- is this 
causing pbx to get set?  If so, how do I work around this?  I want to have 
Zap/24 ring my house but be able to pick it up at work without resorting to 
somehow logging in to asterisk.  I don't want Zap/24 to ring at work, I want 
to pick it up if I see the call is something I want to take while at work.  

Any ideas?

Regards,
Andrew



More information about the asterisk-users mailing list