machtudong / asterisk-chan-dongle

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
0 stars 0 forks source link

Huawei E3131 Dongle ussd response is empty #173

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. send command to asterisk CLI:
dongle ussd dongle0 "*143*89159999999#"
2.
3.

What is the expected output? What do you see instead?

raspbx*CLI> dongle ussd dongle0 "*143*89159999999#"
[dongle0] USSD queued for send with id 0x246f238
    -- [dongle0] Successfully sent USSD 0x246f238
[2014-05-23 21:32:18] NOTICE[3025]: at_response.c:267 at_response_ok: [dongle0] 
Successfully sent USSD 0x246f238
 [dongle0] Got USSD type 2 'USSD Terminated by network': ''
[2014-05-23 21:32:20] WARNING[3046][C-00000000]: func_base64.c:81 
base64_helper: Syntax: BASE64_DECODE(<data>) - missing argument!
    -- Executing [ussd@from-trunk-dongle:1] NoOp("Local/ussd@from-trunk-dongle-00000000;1", "Incoming USSD: ") in new stack
[2014-05-23 21:32:20] WARNING[3046][C-00000000]: func_base64.c:81 
base64_helper: Syntax: BASE64_DECODE(<data>) - missing argument!
    -- Executing [ussd@from-trunk-dongle:2] System("Local/ussd@from-trunk-dongle-00000000;1", "echo '2014-05-23 21:32:20 - dongle0: ' >> /var/log/asterisk/ussd.txt") in new stack
[2014-05-23 21:32:20] WARNING[3046][C-00000000]: func_base64.c:81 
base64_helper: Syntax: BASE64_DECODE(<data>) - missing argument!
    -- Executing [ussd@from-trunk-dongle:3] System("Local/ussd@from-trunk-dongle-00000000;1", "echo "To: phone.system.3000@gmail.com\nSubject: Incoming USSD from ussd\n\n2014-05-23 21:32:20 UTC - dongle0 - ussd: " | sendmail -t") in new stack
    -- Executing [ussd@from-trunk-dongle:4] Hangup("Local/ussd@from-trunk-dongle-00000000;1", "") in new stack
  == Spawn extension (from-trunk-dongle, ussd, 4) exited non-zero on 'Local/ussd@from-trunk-dongle-00000000;1'

What version of the product are you using? On what operating system?

Asterisk 11.8.0
FreePBX 2.11.0.23
Linux raspbx 3.10.29+ #636 PREEMPT Sun Feb 9 19:58:58 GMT 2014 armv6l GNU/Linux

Please provide any additional information below.
about distrib see here: http://www.raspberry-asterisk.org/documentation/

Original issue reported on code.google.com by phone.sy...@gmail.com on 23 May 2014 at 10:30

GoogleCodeExporter commented 9 years ago
Look like duplicate.

Its not USSD response is 'USSD Terminated by network'
For avoid error messages about empty BASE64 just check before length of 
${USSD_BASE64} 
If all USSD have this response - may be your ussd encoding is wrong.

Original comment by bg_...@mail.ru on 23 Jul 2014 at 7:36