[asterisk-users] AEL2, BASE64_DECODE and hexadecimal
Mark Michelson
mmichelson at digium.com
Tue Apr 7 13:07:45 CDT 2009
Philipp Kempgen wrote:
> Olivier schrieb:
>> 2009/4/7 Philipp Kempgen <philipp.kempgen at amooma.de>
>>> Olivier schrieb:
>>>> I'm trying to pass a single carriage return (0x0d in hexa) to Sendtext in
>>> an
>>>> AEL2 file like this :
>>>> SendText(${BASE64_DECODE(DQ==)});
>>>>
>>>>
>>>> Value sent (8 bytes long) is very strange :
>>>> Content-Type: text/plain;charset=UTF-8
>>>> Content-Length: 8
>>>>
>>>> �ez?==
>>> I doubt you will find a way to properly pass CR or LF to an
>>> application in extensions.(conf|ael) but keep us in the loop.
>
>> It's strange how such a silly thing is somehow keeping me from centrally
>> managing phones forwarding : I can display a phone is forwarded but I can't
>> gracefully return to previous status ...
>
> BTW (developer's question) is there a reason why SendText() resp.
> sendtext_exec() refuses to send zero-length data?
>
I can't point to any specific reason. I assume that whoever wrote the
application probably thought that attempting to send zero-length data was
pointless and that if no data were passed to the application, it likely was due
to an error by the user.
Mark Michelson
More information about the asterisk-users
mailing list