[Asterisk-Users] Newbie :Call Forwarding problem

Peter Bowyer peeebeee at gmail.com
Thu Jun 2 01:23:13 MST 2005


On 02/06/05, Mohamed A. Gombolaty <mgombolaty at noorgroup.net> wrote:
> Dear All, 
> 
> I was trying to enable call forwarding, following the steps of the link on
> voip.org regarding this issue it doesn't work and the phone I am trying to
> implement on is still ringing. below is my conf in extensions.conf and the
> CLI output during the process. 
> 
> My configuration is : 
> 
> exten => _*5X.,1,DBput(CF/${CALLERIDNUM}=${EXTEN:2}) 
> exten => _*5X.,2,Hangup 
> 
> exten => *5,1,DBdel(CF/${CALLERIDNUM}) 
> exten => *5,2,Hangup 
> 
> [macro-stdexten] 
> ; 
> ; Standard extension macro (with call forwarding): 
> ; ${ARG1} - Extension(we could have used ${MACRO_EXTEN} here as well 
> ; ${ARG2} - Device(s) to ring 
> ; 
> exten => s,1,DBget(temp=CF/${ARG1}) 
> exten => s,2,Goto(${temp}|1) 
> exten => s,102,Goto(s|3) 
> exten => s,3,Dial(${ARG2},120) 
> exten => s,103,Goto(s|50) 
> exten => s,4,Voicemail(u${ARG1}) 
> exten => s,5,Hangup 
> exten => s,104,Voicemail(b${ARG1}) ; busy 
> exten => s,105,Hangup 
> 
> the output on the CLI during this process was: 
> 
> *CLI> 
>     -- Executing DBdel("SIP/777-a77c", "CF/777") in new stack 
>     -- DBdel: family=CF, key=777 
> Urgent handler 
>     -- Executing Hangup("SIP/777-a77c", "") in new stack 
> Urgent handler 
>     -- Executing DBput("SIP/777-ad46", "CF/777=888") in new stack 
>     -- DBput: family=CF, key=777, value=888 
> Urgent handler 
>     -- Executing Hangup("SIP/777-ad46", "") in new stack 
> Urgent handler 
> 
> *CLI> 
> *CLI> 
>     -- Executing Dial("SIP/999-8f50", "SIP/777|7|tr") in new stack 
>     -- Called 777 
> Urgent handler 
> Urgent handler 
>     -- SIP/777-82e9 is ringing 
> Urgent handler 
> 
> Any Idea what's wrong -- 

How is extension 777 defined in extensions.conf? Did you use the stdexten macro?

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