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???
Oguzhan Kayhan schrieb:> I want to enable call forwarding for asterisk 1.6.0.6 > I found some dialing plans to enable it on web as follows:[...]> 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 extensionYou are trying to use some applications which have been deprecated a long time ago and which have been removed from Asterisk 1.6. DBput() => Use the DB() function. [1][2] DBdel() => Use the DB_DELETE() function. [3] StripLSD(): ---cut--- StripLSD is obsolete because you can now use the following examples: ${123456789:1} - returns the string 23456789 ${123456789:-4} - returns the string 6789 ${123456789:0:3} - returns the string 123 ${123456789:2:3} - returns the string 345 ${123456789:-4:3} - returns the string 678 ---cut--- [1] http://www.das-asterisk-buch.de/2.1/applications-dbput.html [2] http://www.das-asterisk-buch.de/2.1/functions-db.html [3] http://www.das-asterisk-buch.de/2.1/functions-db_delete.html Philipp Kempgen -- AMOOCON 2009, May 4-5, Rostock / Germany -> http://www.amoocon.de Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 --