Summary: | ASTERISK-08928: How to use CHANNEL(language) in extensions.conf ? | ||
Reporter: | Francois MALARD (fmalard) | Labels: | |
Date Opened: | 2007-03-03 07:51:55.000-0600 | Date Closed: | 2011-06-07 14:08:19 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/Internationalization |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Asterisk SVN-branch-1.4-r57426 A) extensions.conf (from make samples) same as http://www.asterisk.org/doxygen/1.4/Config_ext.html date Fri Mar 2 06:28:56 2007 [demo] exten => 3,1,Set(LANGUAGE()=fr) ; Set language to french -- Executing [3@numberplan-custom-1:1] Set("SIP/6001-096eeba0", "LANGUAGE()=fr") in new stack [Mar 3 14:06:14] WARNING[4755]: func_language.c:61 language_write: LANGUAGE() is deprecated; use CHANNEL(language) instead. -- Executing [3@numberplan-custom-1:2] Goto("SIP/6001-0a068b18", "s|restart") in new stack -- Goto (numberplan-custom-1,s,5) -- Executing [s@numberplan-custom-1:5] BackGround("SIP/6001-0a068b18", "demo-congrats") in new stack -- <SIP/6001-0a068b18> Playing 'demo-congrats' (language 'fr') Everything is OK ================================================================================ I replace the line by : exten => 3,1,Set(CHANNEL(language)=fr) -- Executing [3@numberplan-custom-1:1] Set("SIP/6001-090e9bf8", "CHANNEL(language)=fr)") in new stack -- Executing [3@numberplan-custom-1:2] Goto("SIP/6001-090e9bf8", "s|restart") in new stack -- Goto (numberplan-custom-1,s,5) -- Executing [s@numberplan-custom-1:5] BackGround("SIP/6001-090e9bf8", "demo-congrats") in new stack [Mar 3 14:16:46] WARNING[4905]: file.c:553 ast_openstream_full: File demo-congrats does not exist in any format IDEA ? ============================================================================= B) Is it possible to declare a default language in extensions.conf ? C) in AsteriskNow will we find soon a default language ? (for sip, iax, sounds .... ) and for gui messages ? Thanks Francois | ||
Comments: | By: Joshua C. Colp (jcolp) 2007-03-04 21:50:00.000-0600 This is a configuration issue, as you can see: Executing [3@numberplan-custom-1:1] Set("SIP/6001-090e9bf8", "CHANNEL(language)=fr)") in new stack You have an extra ) at the end of fr so the language is actually being set to fr) - please remove it and try again. |