Subject: | Message line of the response |
When the Message line of the response is over a line, being broken by \r\n, only the string is returned to
break, leaving incomplete.
For example:
==========================
Action:SendSMS
Device:*Gsms
Destination:06889786418
Message:Teste
confirmation:true
Response: Success
Message: Message sent\r\nChannel: B1C4
==========================
print $response->{'Message'}
Message sent
He missed part of the string after \r\n.
The expected serious:
print $response->{'Message'}
Message sent
Channel: B1C4
I'm using:
Debian 6 (Kernel 2.6.32-5-686)
Asterisk 1.8.15.1
Perl 5.10.1
Asterisk::AMI 0.2.5