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
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 > > > > > -- > _____________________________________________________________________ > -- 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
2010/1/17 Dominik <d0m1n1k at geekmail.de>> > 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? >This 187362 added this feature for 1.4. Obviously, this fix was not ported to 1.6.X. I would also be very pleased, if it could be done.> > TIA, > Dominik > > > > > -- > _____________________________________________________________________ > -- 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/20100117/659801c6/attachment.htm