[asterisk-users] Transfer calls "on demand"

Luca Bertoncello lucabert at lucabert.de
Tue Dec 29 03:20:25 CST 2015

Daniel Heckl <daniel.heckl at gmail.com> schrieb:

> You are searching for „Call Pickup“. It is implemented in Asterisk by
> default.
> https://wiki.asterisk.org/wiki/display/AST/Call+Pickup
> <https://wiki.asterisk.org/wiki/display/AST/Call+Pickup> Take a look under
> section „Configuration Options“.

Hi, Daniel!

Thanks for your answer...
I'm using Asterisk on an OpenWRT-Router.
I found the configuration for call pickup in the sip.conf and features.conf,
so I tried to activate it...
Unfortunately, unsuccessfully...

So, my sip.conf:

callgroup=1,3-4                 ; We are in caller groups 1,3,4
pickupgroup=1,3-5               ; We can do call pick-p for call group 1,3,4,5

my features.conf:

; Pickup Options
pickupexten = *8               ; Configure the pickup extension. (default is *8)
;pickupsound = beep             ; to indicate a successful pickup (default: no sound)
;pickupfailsound = beeperr      ; to indicate that the pickup failed (default: no sound)

my users.conf:

callgroup = 1
pickupgroup = 1

my extensions.conf:

exten => _00493512222222,1,Verbose(2,Call for Anika - [${CALLERID(num)}])
exten => _00493512222222,Set(CHANNEL(pickupgroup)=1)
exten => _00493512222222,n,Dial(local/2222222 at anika_incoming)
exten => _03512222222,1,Verbose(2,Call for Anika - [${CALLERID(num)}])
exten => _03512222222,n,Dial(local/2222222 at anika_incoming)
exten => _2222222,1,Verbose(2,Call for Anika - [${CALLERID(num)}])
exten => _2222222,n,Set(CALLERID(num)=${IF($[ "${CALLERID(num):0:3}" = "+49" ]?0${CALLERID(num):3}:${CALLERID(num)})})  ; Damit das "+49" mit "0" ersetzt wird
exten => _2222222,n,Set(CHANNEL(musicclass)=default)
;;;exten => _2222222,n,Dial(SIP/00493512222222&local/1 at luca_for_anika_voip_mobile,19,RcxX)
exten => _2222222,n,Dial(SIP/00493512222222,19,RcxX)
exten => _2222222,n,Verbose(2,Voicemail for Anika)
exten => _2222222,n,Set(CALLERID(name)=)                                       ; Damit in der E-Mail der AB nicht den Namen steht
exten => _2222222,n,VoiceMail(00493512222222,us)
exten => _2222222,n,Hangup

Then I called the 2222222 with my mobile phone and I tried to get the call
from the other phone, calling the *8.
Unfortunately I get an error (invalid number) on the display of the phone,
and the phone 2222222 continue to ring.
No error on the log of Asterisk...

Any suggestion?

Luca Bertoncello
(lucabert at lucabert.de)

More information about the asterisk-users mailing list