[asterisk-users] how to call forward on 1.6

Oguzhan Kayhan oguzhank at bilkent.edu.tr
Fri Apr 17 01:30:22 CDT 2009


Hello,
I want to enable call forwarding for asterisk 1.6.0.6
I couldnt seen any config or option on gui or extensions.conf about it.
I found some dialing plans to enable it on web as follows:

[apps]
 ; Unconditional Call Forward
 exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4})
 exten => _*21*X.,2,Hangup
 exten => #21#,1,DBdel(CFIM/${CALLERIDNUM})
 exten => #21#,2,Hangup

 ; Call Forward on Busy or Unavailable
 exten => _*61*X.,1,DBput(CFBS/${CALLERIDNUM}=${EXTEN:4})
 exten => _*61*X.,2,Hangup
 exten => #61#,1,DBdel(CFBS/${CALLERIDNUM})
 exten => #61#,2,Hangup

or even as follows:
[apps]
 ;
 ; Unconditional Call Forward
 ;
 ; create call forward
 exten => _*21*X.,1,GotoIf($${EXTEN:-1} = #?2:3)
 exten => _*21*X.,2,StripLSD(1)
 exten => _*21*X.,3,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4})
 exten => _*21*X.,4,Hangup
 ;
 ; delete call forward
 exten => **21,1,DBdel(CFIM/${CALLERIDNUM})
 exten => **21,2,Hangup
 ;
 ; delete call forward (with #)
 exten => **21#,1,Goto(**21,1)


The problem is, in the first example i get the error
No application 'DBput' for extension
and second example i got the error :
No application 'StripLSD' for extension

SO is there any default call forwarding or any running examples for 1.6???





More information about the asterisk-users mailing list