CRSM parse/Emergency numbers

Peter Naulls peter at chocky.org
Tue Jan 11 17:35:30 UTC 2022



I'm seeing this.

[16076]: <warn>  [1641922135.360300] [modem0/sim0] couldn't load list of 
emergency numbers: Failed to parse CRSM query result '+CRSM: 148,8,""'

Seems like the regex in mm_3gpp_parse_crsm_response needs some work. Here it is:

     r = g_regex_new 
("\\+CRSM:\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*\"?([0-9a-fA-F]+)\"?",
                      G_REGEX_RAW, 0, NULL);


Regards.



More information about the ModemManager-devel mailing list