Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error decode CUSD #38

Open
532910 opened this issue Aug 11, 2017 · 13 comments
Open

Error decode CUSD #38

532910 opened this issue Aug 11, 2017 · 13 comments

Comments

@532910
Copy link

532910 commented Aug 11, 2017

cellgate*CLI> dongle ussd tele2 *105#
[tele2] USSD queued for send with id 0xb4700660
-- [tele2] Successfully sent USSD 0xb4700660
[Aug 11 03:26:55] NOTICE[17367]: at_response.c:266 at_response_ok: [tele2] Successfully sent USSD 0xb4700660
[Aug 11 03:26:56] ERROR[17367]: at_response.c:1384 at_response_cusd: [tele2] Error decode CUSD: CF2135487D2E4131DCCD25A381E02E

But http:https://smstools3.kekekasvi.com/topic.php?id=288 can successfully convert this CUSD

@532910
Copy link
Author

532910 commented Aug 11, 2017

other ussd works:

cellgate*CLI> dongle ussd tele2 *201#
[tele2] USSD queued for send with id 0x8080bd78
-- [tele2] Successfully sent USSD 0x8080bd78
[Aug 11 04:04:22] NOTICE[18775]: at_response.c:266 at_response_ok: [tele2] Successfully sent USSD 0x8080bd78
[tele2] Got USSD type 0 'USSD Notify': 'Ваш федеральный номер +7 (999) 666-13-13'

@CpServiceSpb
Copy link

I confirm this issue.
More over I didn' t get *201# working as well.
And in many USSD cases I got:
CE325C1EB6A7D9EE7C1AE47EB7CB72507DCEAE9FD3
That is meant "Nepravilniy nomer usugi" - it is English for "Wrong service number" .
I made some discovering of the issue and found out, that it happens because of Huawei has to send USSD in PDU format and receives answer in text format. But before sending, USSD request is not encoded to PDU.
Moreover I made some changes for some previous version of wdoekes chan dongle version and got working USSD correctly.
But, unfortunately I lost those version.

@CpServiceSpb
Copy link

I remembered some part of how I solved it.
Though my Huawei E367 is set up for PDU mode (AT+CMGF=0) outgoing USSD were not encoded to PDU format for sending.
I don' t know is it right or not, but I didn' t change dongle mode but I added "E367" to seven_bit_modems array to at_response.c.
And, oh, a miracle, I received correct USSD answer.

@532910
Copy link
Author

532910 commented Aug 20, 2017

As I understand, the operator above sends USSD in two different formats and you can't set one specific for modem and should detect it dynamically.

@oooo1
Copy link

oooo1 commented Aug 20, 2017

Is above your real phone number (999) 666-13-13 ?
What is your name ?
I will call to you, to discuss the case.
I don' t know your dongle model, but I issued this case for my one, I use Huawei E367.

@532910
Copy link
Author

532910 commented Aug 21, 2017

It's fake number, or course.
My name? My phone? To discuss? Who are you? It's github, discuss the case here.
Model number E1550.

@oooo1
Copy link

oooo1 commented Aug 21, 2017

I am a man who would like to help you due to the same country and may be the same cell carrier.
Ok. Don' t mind.
You can find potential solution for the case at my post in a github space.
At least, itworks with my E367.

@532910
Copy link
Author

532910 commented Aug 21, 2017

As I understand, format is hardcoded for modem model. But it should be detected on the fly.

@wdoekes
Copy link
Owner

wdoekes commented Aug 22, 2017

@marcogaio fixed his USSD issues from #29 by removing "K3765" which he wrongly added to the seven_bit_modems list.

If there are models you want me to add to that list, please specify and I can do so. E367? E1550?

@532910
Copy link
Author

532910 commented Aug 22, 2017

I have only E1550.

@oooo1
Copy link

oooo1 commented Aug 22, 2017

wdoekes, I advise to add as E1550 as E367.
But I didn' t test with E1550 due to I don' t have it.
With E367 it works fine, at least for me.

@wdoekes
Copy link
Owner

wdoekes commented Sep 26, 2017

Note to self, see also: bg111#231

@532910
Copy link
Author

532910 commented Aug 31, 2019

Any update?

shalzz pushed a commit to shalzz/asterisk-chan-dongle that referenced this issue Apr 23, 2022
# This is the 1st commit message:

Create DONATIONS.txt
# This is the commit message wdoekes#2:

Update README.md
# This is the commit message wdoekes#3:

Update DONATIONS.txt
# This is the commit message wdoekes#4:

Update DONATIONS.txt
# This is the commit message wdoekes#5:

Update DONATIONS.txt
# This is the commit message wdoekes#6:

Update chan_quectel.h
# This is the commit message wdoekes#7:

Update README.md
# This is the commit message wdoekes#8:

Update cpvt.h
# This is the commit message wdoekes#9:

Add files via upload
# This is the commit message wdoekes#10:

Delete DONATIONS.txt
# This is the commit message wdoekes#11:

Update README.md
# This is the commit message wdoekes#12:

Update README.md
# This is the commit message wdoekes#13:

Update README.md
# This is the commit message wdoekes#14:

Add files via upload
# This is the commit message wdoekes#15:

Update README.md
# This is the commit message wdoekes#16:

Update README.md
# This is the commit message wdoekes#17:

Update README.md
# This is the commit message wdoekes#18:

Update README.md
# This is the commit message wdoekes#19:

Update README.md
# This is the commit message wdoekes#20:

Update README.md
# This is the commit message wdoekes#21:

Update README.md
# This is the commit message wdoekes#22:

Update README.md
# This is the commit message wdoekes#23:

Add files via upload

Added Simcom support
# This is the commit message wdoekes#24:

Update README.md
# This is the commit message wdoekes#25:

Update README.md
# This is the commit message wdoekes#26:

Added support for Quectel UAC configuration
# This is the commit message wdoekes#27:

Conf file when using UAC
# This is the commit message wdoekes#28:

Update README.md
# This is the commit message wdoekes#29:

Update README.md
# This is the commit message wdoekes#30:

Quectel CREG correction

chan_dongle code assumes 4 parameters in response to command and 3 for URC. However quectel provides 5 and 4 respectively. This fix helps pass on correct status of registration.
# This is the commit message wdoekes#31:

No force registration status

Due to CREG parse issues, earlier registration status was always kept on, now will show unregistered if not connected to network
# This is the commit message wdoekes#32:

Create readme.md
# This is the commit message wdoekes#33:

For compilation with openwrt sdk
# This is the commit message wdoekes#34:

Support for openwrt sdk compilation
# This is the commit message wdoekes#35:

Fix for lac and cell id

Ref IchthysMaranatha#6
Post fix values may have a trailing double quote for quectel devices
# This is the commit message wdoekes#36:

Updated call ids for simcom

Add call termination for call ids 1 and 2
# This is the commit message wdoekes#37:

comment for simcom audio

Added default audio port for simcom in comment
# This is the commit message wdoekes#38:

Integrated ALSA support for UAC

Integrated driver for ALSA added, no need for bridging additional Asterisk ALSA channel when using UAC mode. Please use non-ALSA integrated branch if there is no need for UAC and you wish to avoid alsa dependency when compiling and running
# This is the commit message wdoekes#39:

Update COPYRIGHT.txt

Attribute copyright for alsa code copied from chan_alsa.c https://github.com/asterisk/asterisk/blob/master/channels/chan_alsa.c
# This is the commit message wdoekes#40:

Update README.md
# This is the commit message wdoekes#41:

Conf file with UAC device support
# This is the commit message wdoekes#42:

UAC mode conf file
# This is the commit message wdoekes#43:

Added alsa-lib for compilation
# This is the commit message wdoekes#44:

Delete Makefile.in
# This is the commit message wdoekes#45:

alsa-lib dependency addition
# This is the commit message wdoekes#46:

Fix for simcom audio issues with immediate answer in dialplan
# This is the commit message wdoekes#47:

Note for Quectel serial audio

Added remark to disable gps messages
# This is the commit message wdoekes#48:

Added note for Pi users
# This is the commit message wdoekes#49:

Quectel creg formatting fix

Removed trailing double quotes in reporting lac/cid
# This is the commit message wdoekes#50:

add gitattributes
# This is the commit message wdoekes#51:

Send DTMF using AT command

Corrected at command for dtmf generation
# This is the commit message wdoekes#52:

Fix for busy on call rejection for simcom

For those who receive 'busy' additionally on call rejection when dialling out. Author only receives 'no carrier' on rejection. Reported and solved by @mpmc here IchthysMaranatha#22
# This is the commit message wdoekes#53:

Removal of redundant closetty
# This is the commit message wdoekes#54:

Update busy fix for call rejection

Updated fix as submitted by @mpmc here IchthysMaranatha#22
Author does not receive busy response on call rejection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants