[Asterisk-Users] Call forwarding...

Peter Bowyer peeebeee at gmail.com
Wed May 18 03:33:21 MST 2005


In 18/05/05, Mark Benson <mark.benson at iqit.co.uk> wrote:
> 
> I'm trying to setup a call forwarding rule so that when an extention
> doesn't answer the call is forwarded to my mobile.
> 
> I'm using voiptalk.org for incoming and outgoing calls and SIP phones
> for extentions (so all IP based - no real phone lines).
> 
> I tried this (from voip-info.org wiki)...
> 
> exten => 1234,1,dial(sip/1234,20)
> exten => 1234,2,playback(pls-wait-connect-call)
> exten => 1234,3,Setvar(NewCaller=${CALLERIDNUM})
> exten => 1234,4,SetCIDNum(0${CALLERIDNUM})
> exten => 1234,5,dial(${TRUNK}c/9871234321,20,r)
> exten => 1234,6,SetCIDNum(${NewCaller})
> exten => 1234,7,voicemail2(u1234 at default)
> exten => 1234,101,voicemail2(b1234 at default)
> exten => 1234,102,hangup
> 
> Mine looks like this...
> 
> exten => 08700688nnn,1,Dial(SIP/operator,1,t)
> exten => 08700688nnn,2,playback(pls-wait-connect-call)
> exten => 08700688nnn,3,Setvar(NewCaller=${CALLERIDNUM})
> exten => 08700688nnn,4,SetCIDNum(0${CALLERIDNUM})
> exten => 08700688nnn,5,Dial(${TRUNK}/07961106nnn,20,r)
> exten => 08700688nnn,6,SetCIDNum(${NewCaller})
> exten => 08700688nnn,7,Voicemail(u100)
> exten => 08700688nnn,8,Hangup()
> exten => 08700688nnn,101,Voicemail(b100)
> exten => 08700688nnn,102,Hangup()
> 
> (where nnn is a real number)
> The sip channel is set to time out quickly for testing.
> And I don't appear to have the pls-wait-connect-call audio file - but
> that isn't an issue for the time being...
> The IAX2/0870nnnnn is the extention/device that calls go out on via
> voiptalk... (my call provider)...
> If I include the c/ in the TRUNK line I get...
> 
>   -- Executing Dial("IAX2/08700688nnn at 217.14.132.nnn:4569-1",
> "c/07961106nnn|20|r") in new stack
> May 18 10:37:40 WARNING[24416]: channel.c:1957 ast_request: No channel
> type registered for 'c'
> May 18 10:37:40 NOTICE[24416]: app_dial.c:927 dial_exec_full: Unable to
> create channel of type 'c' (cause 66)

Have you set the TRUNK variable in the [globals] section of
extensions.conf? Looks like you didn't.

Peter

-- 
Peter Bowyer
Email: peter at bowyer.org
Tel: +44 1296 768003
VoIP: sip:peter at bowyer.org



More information about the asterisk-users mailing list