Cellphone does not support GSM7?

"João M. S. Silva" joao.m.santos.silva at gmail.com
Mon Mar 23 09:08:28 PDT 2015


Hello Aleksander,

> I don't think there's nothing to be done in ModemManager; if the text
> passed in the "text" variable given in --messaging-create-sms contains
> a newline character (e.g. \n) then the SMS will be multiline. You just
> need to make sure you correctly add the EOL character to the shell
> variable.

Thanks, I tried your commands and confirm this.

However, I am not using an environment variable for user input, I'm 
calling mmcli from a Bash script, which in its turn is called by a PHP 
script.

So, in fact it was a matter of \n escaping. I was not escaping \n 
correctly in the PHP script, but I was mislead by the fact that the echo 
command in the Bash script, which I used for debugging, deals with the 
'\' + 'n' as if it was a '\n', so it was masking the incorrect escaping.

I'm now escaping correctly ("\n" instead of '\n' in PHP) and the text 
arrives correctly formatted to the mmcli command line.

Thanks for the support.

Best regards,
-- 
João M. S. Silva


More information about the ModemManager-devel mailing list