USSD not working/crashing asterisk #43
-
I'm using Quectel EG25. Everything seems to work fine expect for USSD. The reason for that that in plain-text USSD can't be requested in UCS2 encoding, which is the default for chan_quectel, only with GSM
there are two options:
Output of async USSD commands is redirected to /dev/ttyUSB3 by default, which is modem port If I do this, asterisk receive a response and crash on ussd reply due to |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 43 replies
-
I'm not able to check this as ussd commands are not working for me with minicom either with gsm encoding. Are they working for your provider in minicom? If yes, you could try commenting out this line asterisk-chan-quectel/at_command.c Line 136 in b3534ea Recompile, restart modem and check. |
Beta Was this translation helpful? Give feedback.
-
May be a parsing issue I think. I can't check myself, as ussd does not work for me at all. Have you checked with another 2g/3g modem and chan_dongle? Do you get same response in terminal with 2g/3g modem? |
Beta Was this translation helpful? Give feedback.
-
In your example, are you not passing diff commands with gsm and ucs2? With ucs2, you seem to passing # 100 # asterisk-chan-quectel/at_command.c Line 379 in 95b384e |
Beta Was this translation helpful? Give feedback.
-
My fork of |
Beta Was this translation helpful? Give feedback.
-
I'm still encountering the same USSD issue in the new release. The error message "Error sending USSD 0x74e268004820" appears, and then Asterisk hangs, preventing calls and functionality. Could you please provide guidance on how to resolve this issue? [quectel0] USSD queued for send |
Beta Was this translation helpful? Give feedback.
-
Are you using code from this branch? https://github.com/IchthysMaranatha/asterisk-chan-quectel/tree/USSDTest |
Beta Was this translation helpful? Give feedback.
-
As my operator does not support ussd, no way for me to test USSD myself Unload asterisk, use minicom to connect to modem and then run |
Beta Was this translation helpful? Give feedback.
-
Also, have you tried this fork created by someone else |
Beta Was this translation helpful? Give feedback.
In your example, are you not passing diff commands with gsm and ucs2? With ucs2, you seem to passing # 100 #
Anyway, I've added a fix using gsm, it changes encoding to gsm, passes ussd and then reverts to ucs2. Please check with this branch and let me know
https://github.com/IchthysMaranatha/asterisk-chan-quectel/tree/USSDTest
I've added a log here to see the command that is passed on to the modem, you can comment it out if the code works
asterisk-chan-quectel/at_command.c
Line 379 in 95b384e