[asterisk-users] How to escape characters in Dialplan
Olivier
oza-4h07 at myamail.com
Tue Jan 19 13:04:47 CST 2010
2010/1/19 Danny Nicholas <danny at debsinc.com>
> This link might help
> http://www.voip-info.org/wiki/view/Asterisk+cmd+SendText
>
>
Yes but the trouble is you can't send empty strings with SendText.
With this specific IP phone, you sometimes have to.
Cheers
>
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dominik
> Sent: Tuesday, January 19, 2010 11:01 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] How to escape characters in Dialplan
>
>
> 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
> >
>
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100119/f2eae10b/attachment.htm
More information about the asterisk-users
mailing list