[asterisk-users] pick up code

salaheddine elharit salah.elharit200 at gmail.com
Tue Sep 6 11:43:39 CDT 2011


Hello list



i want to use pickup with sip and astersik 1.4



i configured all the inbound calls in 1 sip phone 224 and want to pickup the
calls using 222 SIP



Could you please see the code below and tell me what is wrong



NB when i make *8+ok i can pickup the call but i want to specify the number.



extenssion.conf

[agents]
exten => _2XX,1,Dial(SIP/${EXTEN})
exten => _*8XXX,1,PickupChan(SIP/${EXTEN:2})


sip.conf

[general]
context=agents
allowguest=yes
allowoverlap=no
allowtransfer=yes
allow=alaw
allow=ulaw
allow=gsm
allow=ilbc

[222]
type=friend
context=agents
host=dynamic
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw
qualify=yes
callgroup=1
pickupgroup=1

[224]
type=friend
context=agents
host=dynamic
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw
qualify=yes
callgroup=1
pickupgroup=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110906/0dba3399/attachment.htm>


More information about the asterisk-users mailing list