Call forwarding -- Request


#1

I have installed Asterisk with public ip. Successfully conducted testing of ua like X-lite,windows messanger and MTA ip phone and video phone with public ip. Thanks to the resources available at this forum. While testing Asterisk feature - call forwarding using previous post config, I am not able to register call forward number and forward calls.

My scenerio is like this. Using Asterisk 1.2 trying to call from ua1(5678) to ua2(1234). the call has to be forwarded to ua3(3345) if the user doesn’t answer or the line is busy.

The config, I tried is given below;

Sip.conf
[5678]
type=friend
context=2x-lite
host=dynamic
allow=alaw

[1234]
type=friend
context=x-lite
host=dynamic
nat=yes
qualify=200
canreinvite=no
allow=alaw

[3345]
type=friend
context=2x-lite
host=dynamic
allow=alaw

extensions.conf
[x-lite]
include => xlite
include => apps

[2x-lite]
include => xlite
include => apps

[apps]
exten => _21X.,1,GotoIf(${EXTEN:-1} = #?2:3)
exten => _21X.,2,StripLSD(1)
exten => _21X.,3,SayDigits(${EXTEN:4})
exten => _21X.,4,Set(DB(CFIM/${CALLERIDNUM})=${EXTEN:4})
exten => _21X.,5,Hangup()

[xlite]
exten => 7001,1,Macro(cf,1234,SIP/1234)

[macro-cf]
exten => s,1,DB(temp=CFIM/${ARG1})
exten => s,2,Dial(x-lite/${temp})
exten => s,3,Dial(${ARG2},20)
exten => s,4,DB(temp=CFBS/${ARG2})
exten => s,5,Dial(x-lite/${temp})
exten => s,102,Goto(s,3)
exten => s,105,Busy

[x-lite]
include => parkedcalls
include => apps

while dialing 213345 from extension 1234

– Executing GotoIf(“SIP/1234-82d3”, “5 = #?2:3”) in new stack
– Goto (x-lite,213345,2)
– Executing SayDigits(“SIP/1234-82d3”, “3345”) in new stack
– Playing ‘digits/3’ (language ‘en’)
– Playing ‘digits/3’ (language ‘en’)
– Playing ‘digits/4’ (language ‘en’)
– Playing ‘digits/5’ (language ‘en’)
– Executing Set(“SIP/1234-82d3”, “DB(CFIM/1234)=3345”) in new stack
– Executing Hangup(“SIP/1234-82d3”, “”) in new stack

while dialing 7001 from extension 5678

== Spawn extension (x-lite, 213345, 4) exited non-zero on ‘SIP/1234-82d3’
– Executing Macro(“SIP/5678-8405”, “cf|1234|SIP/1234”) in new stack
– Executing Set(“SIP/5678-8405”, “temp=DB(CFIM/1234)”) in new stack
– Executing Dial(“SIP/5678-8405”, “x-lite/DB(CFIM/1234)”) in new stack
Dec 5 14:29:59 WARNING[6597]: channel.c:2520 ast_request: No channel type registered for 'x-lite’
Dec 5 14:29:59 NOTICE[6597]: app_dial.c:1011 dial_exec_full: Unable to create channel of type ‘x-lite’ (cause 66 - Channel not implemented)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing Dial(“SIP/5678-8405”, “SIP/1234|20”) in new stack
Dec 5 14:29:59 NOTICE[6597]: app_dial.c:1011 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing Set(“SIP/5678-8405”, “temp=DB(CFBS/SIP/1234)”) in new stack
– Executing Dial(“SIP/5678-8405”, “x-lite/DB(CFBS/SIP/1234)”) in new stack
Dec 5 14:29:59 WARNING[6597]: channel.c:2520 ast_request: No channel type registered for 'x-lite’
Dec 5 14:29:59 NOTICE[6597]: app_dial.c:1011 dial_exec_full: Unable to create channel of type ‘x-lite’ (cause 66 - Channel not implemented)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel ‘SIP/5678-8405’ status is ‘CHANUNAVAIL’

Messages indicate the issue with storage of 3345 is not successful. Indicate where, I am missing.

Thanks.