[asterisk-users] How to escape characters in Dialplan

Dominik d0m1n1k at geekmail.de
Tue Jan 19 11:00:47 CST 2010


Hello,
excuse my unknowing question, but how can I open the dialplan in hex-mode? 
What file is it? Normaly, my dialplan ist read in textmode from 
/etc/asterisk/extensions.conf. Sure, I can insert a new line with a hex-editor 
into the textfile, but then the line got wrapped:
WARNING[1450]: pbx_config.c:1519 pbx_load_config: No closing parenthesis 
found? ' SendText('    

Maybe, is there a way to put new line into a variable? 

Set(VARIABLE='\n') also don't work. But maybe I can read a \n from a file into 
a variable (with an agi-script)?


Thanks,
Dominik

Am Sonntag 17 Januar 2010 schrieb Peter:
> Somewhere \n needs to be converted into utf8 new line. Asterisk should
> do this for you but it doesnt.
> 
> Try opening the dialplan in hex mode and insert hex code for utf8 new
> line where the line break should be.
> 
> Peter
> 
> On 17 jan 2010, at 12.09, Dominik wrote:
> > Hello,
> > I'm using Asterisk 1.6.2.0 and I like to use escape characters with
> > SendText,
> > because I can just delete the message from my phone (Thomson
> > Speedtouch
> > ST2030) display by sending a return-char (\n).
> > But \n is not escaped: I tried already:
> >
> > exten => 222, n, SendText(\n)
> > exten => 222, n, SendText("\n")
> > exten => 222, n, SendText('\n')
> > exten => 222, n, SendText(`\n`)
> >
> >
> > So how can I use escape characters in dialplan?
> >
> >
> > TIA,
> > Dominik
> >
> >
> >
> >
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
> 






More information about the asterisk-users mailing list