faucamp / python-gsmmodem

Python module to control a GSM modem attached to the system: send/receive SMS messages, handle calls, etc
GNU Lesser General Public License v3.0
385 stars 303 forks source link

SIM800C not supported calls #112

Open ramballan opened 1 year ago

ramballan commented 1 year ago

Hi When I'm try to dial any number call is happened but callback is not working. On command 'AT+CLCC' SIM800C returns next +CLCC: 1,0,2,0,0,"phone_number",129,"" and your regex ^\+CLCC:\s+(\d+),(\d),(\d),(\d),([^,]),"([^,]*)",(\d+)$ doesn't match it, cause response has some information in the end of the string/ According to docs it's alphaId.

Can you change your regex to avoid this case and support SIM800C

^\+CLCC:\s+(\d+),(\d),(\d),(\d),([^,]),"([^,]*)",(\d+) I think this will be enough