Closed GoogleCodeExporter closed 9 years ago
ok sorry. I was using Makhutov's version. I just downloaded chan_datacard from
here:
Only made ussd work
this one has no voice support
[May 1 17:42:29] WARNING[5793]: at_response.c:398 at_response_error:
[datacard0] Datacard has NO voice support
[May 1 17:42:31] NOTICE[5793]: at_response.c:1078 at_response_ccwa: Call
waiting is disabled on device datacard0
--
*CLI> datacard show device state datacard0
-------------- Status -------------
Device : datacard0
State : Free
Audio : /dev/ttyUSB1
Data : /dev/ttyUSB2
Voice : No
SMS : Yes
Manufacturer : ZTE COPORRATION
Model : MF637
Firmware : BD_P673A3V1.1.1B03
IMEI : 356516022535475
IMSI : 268069610352719
GSM Registration Status : Registered, home network
RSSI : 20, -113 dBm
Mode : No Service
Submode : No service
Provider Name : P tmn
Location area code : 136
Cell ID : 25825D
Subscriber Number : Unknown
SMS Service Center :
Use UCS-2 encoding : Yes
USSD use 7 bit encoding : No
USSD use UCS-2 decoding : No
Tasks in queue : 0
Commands in queue : 0
Call Waiting : Disabled
Current device state : start
Desired device state : start
Calls/Channels : 0
Active : 0
Held : 0
Dialing : 0
Alerting : 0
Incoming : 0
Waiting : 0
Releasing : 0
Initializing : 0
*CLI> datacard
callwaiting cmd reload remove reset restart
show sms start stop ussd
*CLI> datacard
callwaiting cmd reload remove reset restart
show sms start stop ussd
*CLI> datacard sms datacard0
Usage: datacard sms <device ID> <number> <message>
Send a sms to <number> with the <message>
*CLI> datacard sms datacard0 932485457 lol
[datacard0] SMS queued for send with id 0x1670f50
*CLI> -- [datacard0] Error sending SMS message 0x1670f50
[May 1 17:45:02] ERROR[5861]: at_response.c:509 at_response_error: [datacard0]
Error sending SMS message 0x1670f50
datacard sms datacard0 932485457 lol
[datacard0] SMS queued for send with id 0x1671430
*CLI> -- [datacard0] Error sending SMS message 0x1671430
[May 1 17:45:17] ERROR[5861]: at_response.c:509 at_response_error: [datacard0]
Error sending SMS message 0x1671430
*CLI> datacard
callwaiting cmd reload remove reset restart
show sms start stop ussd
*CLI> datacard
callwaiting cmd reload remove reset restart
show sms start stop ussd
*CLI> datacard ussd datacard0 *123#
[datacard0] USSD queued for send with id 0x15cb550
*CLI> -- [datacard0] Successfully sent USSD 0x15cb550
[May 1 17:45:41] NOTICE[5861]: at_response.c:275 at_response_ok: [datacard0]
Successfully sent USSD 0x15cb550
[May 1 17:45:43] ERROR[5861]: at_response.c:545 at_response_error: [datacard0]
Received unexpected 'ERROR'
*CLI> datacard ussd datacard0 *#123#
[datacard0] USSD queued for send with id 0x15cb5f0
*CLI> -- [datacard0] Successfully sent USSD 0x15cb5f0
[May 1 17:45:52] NOTICE[5861]: at_response.c:275 at_response_ok: [datacard0]
Successfully sent USSD 0x15cb5f0
[datacard0] Got USSD type 0 'USSD Notify': 'Saldo: 12.57 EURO. Marcacao consultas medicas, ligue 1820.'
-- Executing [ussd@agents:1] Verbose("Local/ussd@agents-6889;1", "Incoming USSD: Saldo: 12.57 EURO. Marcacao consultas medicas, ligue 1820.") in new stack
[May 1 17:45:54] WARNING[5864]: app_verbose.c:97 verbose_exec: 'Incoming USSD:
Saldo: 12.57 EURO. Marcacao consultas medicas' is not a verboser number
ligue 1820.
-- Executing [ussd@agents:2] System("Local/ussd@agents-6889;1", "echo '2011-05-01 17:45:54 - datacard0: Saldo: 12.57 EURO. Marcacao consultas medicas, ligue 1820.' >> /var/log/asterisk/ussd.txt") in new stack
-- Executing [ussd@agents:3] Hangup("Local/ussd@agents-6889;1", "") in new stack
== Spawn extension (agents, ussd, 3) exited non-zero on 'Local/ussd@agents-6889;1'
--
Original comment by Tiago.Ge...@gmail.com
on 1 May 2011 at 4:51
please, this is not a bug. Report on forum.
Original comment by pag...@gmail.com
on 5 May 2011 at 9:57
Sorry I didn't mean to report it as a bug, just as feedback...
Original comment by Tiago.Ge...@gmail.com
on 5 May 2011 at 9:59
Original issue reported on code.google.com by
Tiago.Ge...@gmail.com
on 1 May 2011 at 4:15Attachments: