Coder Social home page Coder Social logo

datacard's People

datacard's Issues

Improove of device locking

core reload now 
is dirty, and not call device cleanup.
Also exec() new instance of asterisk, and old asterisk pid still alive.
This mean
1) lock files still exist
2) lock files contain valid pid

and user cause error '...already used by pid ...'

Should improove device locking by
1) Add CLOSE ON EXEC flag for fd to devices
2) add to lock file also fd number and check with port_status() after pid check

Original issue reported on code.google.com by [email protected] on 12 Jan 2011 at 8:35

Conference feature

Conference support mean 

1) Control of Conference feature of modem 
This mean modem/network internally mix and share sound from 
multiple sources and code must just control this process.

2) Conference support inside asterisk.

Because device has only one sound input/output but any call has asterisk 
channel we also need provide mix of sound from these channels before write to 
device and share readed voice from device between all channels in conference.

BUT, if channels bridged together with source is call on device and destination 
is call on same device with calls in one conference, we must break this loop by 
drop write requests to device from both channels.

Channels only reading from device and sound mixed and shared inside device.



Original issue reported on code.google.com by [email protected] on 30 Nov 2010 at 8:36

  • Merged into: #1

Conference Calls

Hi,
our mobile operator permit maximum 6 conference calls in the some time. I've 
try but with chan_datacard I'm able to use only three channels on the some time 
maximum.

How I can modify the code for use all 6 channels ?

Sorry for my bad english


Best Regards



Original issue reported on code.google.com by [email protected] on 22 Dec 2010 at 7:58

detection problem

Bus: 1 Dev: 5.6 Conf: 1
Manufacturer: huawei  Model: E160 IMEI: XXXXXXXXXXXXXXXX IMSI: XXXXXXXXXXXXXXXX
        Interface: 0 Port: /dev/ttyUSB6
        Interface: 1 Port: /dev/ttyUSB7
Bus: 1 Dev: 5.7 Conf: 1
#Manufacturer: huawei  Model: E1550 IMEI: XXXXXXXXXXXXXXXX IMSI: 
XXXXXXXXXXXXXXXX
        Interface: 0 Port: /dev/ttyUSB9
        Interface: 1 Port: /dev/ttyUSB10
Bus: 1 Dev: 5.1.3 Conf: 1
Manufacturer: huawei  Model: E1550 IMEI: XXXXXXXXXXXXXXXX IMSI: XXXXXXXXXXXXXXXX
        Interface: 0 Port: /dev/ttyUSB12
        Interface: 1 Port: /dev/ttyUSB13
Bus: 1 Dev: 5.1.4 Conf: 1
Manufacturer: huawei  Model: E1550 IMEI: XXXXXXXXXXXXXXXX IMSI: XXXXXXXXXXXXXXXX
        Interface: 0 Port: /dev/ttyUSB15
        Interface: 1 Port: /dev/ttyUSB16
Bus: 1 Dev: 5.3 Conf: 1
Manufacturer: huawei  Model: E1550 IMEI: XXXXXXXXXXXXXXXX IMSI: XXXXXXXXXXXXXXXX
        Interface: 0 Port: /dev/ttyUSB0
        Interface: 1 Port: /dev/ttyUSB1
        Interface: 2 Port: /dev/ttyUSB2
Bus: 1 Dev: 5.5 Conf: 1
Manufacturer: huawei  Model: E1550 IMEI: XXXXXXXXXXXXXXXX IMSI: XXXXXXXXXXXXXXXX
        Interface: 0 Port: /dev/ttyUSB3
        Interface: 1 Port: /dev/ttyUSB4
        Interface: 2 Port: /dev/ttyUSB5
        Interface: 2 Port: /dev/ttyUSB8
        Interface: 2 Port: /dev/ttyUSB11
        Interface: 2 Port: /dev/ttyUSB14
        Interface: 2 Port: /dev/ttyUSB17



As you can see last modem shows it wrong for some reason (is a e180 which 
before revision 172 was working fine)

Original issue reported on code.google.com by [email protected] on 21 Jan 2011 at 2:43

typing errors

typing errors in 'help' and command-interpreter 

current:

datacard show device statictic    Show Datacard device statictics

should be

datacard show device statistics   Show Datacard device statistics




Original issue reported on code.google.com by [email protected] on 18 Jan 2011 at 7:34

Не работает исходящая связь на Asterisk 1.8.x

При исходящем вызове на сеть GMS к консоли 
asterisk отображается ошибка:
[Jan 21 20:12:39] WARNING[31681]: __channel.c:111 channel_request: Can't 
determine destination
[Jan 21 20:12:39] WARNING[31681]: app_dial.c:2039 dial_exec_full: Unable to 
create channel of type 'Datacard' (cause 0 - Unknown)

При установке модификации 
http://iqlab.ru/downloads/chan_datacard-175-1.8.zip исходящая 
связь работает без проблем (но есть 
предупреждения).

OS: FreeBSD 8.1
Asterisk 1.8.2
chan_datacard 184 ревизия
Модемы: huawei E150.

Направление описано в extensions.ael
_890240XXXXX => Dial(Datacard/datacard0/${EXTEN});

Original issue reported on code.google.com by [email protected] on 21 Jan 2011 at 3:29

r63 not make for x86_64bit

In file included from at_parse.c:13:
memmem.h:22: error: expected declaration specifiers or ‘...’ before 
‘size_t’
memmem.h:22: error: expected declaration specifiers or ‘...’ before 
‘size_t’
In file included from /usr/include/asterisk/compat.h:67,
                 from /usr/include/asterisk.h:27,
                 from at_parse.c:15:
/usr/include/string.h:382: error: conflicting types for ‘memmem’
memmem.h:22: note: previous declaration of ‘memmem’ was here
make: *** [at_parse.o] Ошибка 1

Original issue reported on code.google.com by [email protected] on 3 Dec 2010 at 9:09

sim card is not yet ready

Some sims fail to fetch

AT+CNUM
ERROR

bit register ok in network. chan_datacard should ignore this, but getting

[Jan 16 22:57:05] WARNING[1245]: at_response.c:381 at_response_error: 
[datacard3] Error checking subscriber phone number
    -- Datacard datacard3 needs to be reinitialized. The SIM card is not ready yet
    -- Error initializing Datacard datacard3

and no way to use this SIM

Original issue reported on code.google.com by [email protected] on 16 Jan 2011 at 9:58

DTMF error

sometimes, get this error:

ERROR[16552]: channel.c:622 channel_digit_begin: [datacard0] Error adding DTMF 
A command to queue

Original issue reported on code.google.com by [email protected] on 22 Dec 2010 at 10:38

debug output to file

CLI> datacard debug file_name/console

Should be a great tool debug all GSM info from/to modem...


Original issue reported on code.google.com by [email protected] on 9 Jan 2011 at 5:23

event generation for manager

chan_datacard should generate events for any change or action deployed. For 
example, free/busy state changes, hangup (cc_cause), channel creation, etc



Original issue reported on code.google.com by [email protected] on 21 Jan 2011 at 4:09

USSD parse error

*CLI> datacard ussd MTS2 *101*4# 
[MTS2] USSD queued for send 
[Dec  5 23:25:22] NOTICE[7135]: at_response.c:252 at_response_ok: [MTS2] 
Successfully sent sms USSD 
[MTS2] Error parsing CUSD: '+CUSD: 5' 

Original issue reported on code.google.com by [email protected] on 6 Dec 2010 at 5:33

SMS defects

chan_datacard: Datacard Channel Driver, Version 1.0, Revision 252
datacard model E1550
firmware: 11.608.14.15.311
kernel:2.6.32-26-server
CPU: x64
ubuntu 10.10.1
if received sms > 150 char, datacard crashes ... ttyUSB dissapears, need 
server restart or it recover itself after few h
Note: this didn't happned on the 
https://www.makhutov.org/svn/chan_datacard/trunk/
on their driver when sms was bigger then 150 char was arrived as 2 sms's but in 
a strange format (not decoded)

if send sms more then 150 char > error again.



Original issue reported on code.google.com by [email protected] on 7 Dec 2010 at 6:25

incoming DID

If Number is set in SIM card, then set DID (for incoming calls) to Number. 

This way, a better dialplan for incoming calls can be made...


Perhaps, if Number is not set, then DID can be IMSI or IMEI or whatever...


Original issue reported on code.google.com by [email protected] on 4 Dec 2010 at 1:11

no early media

What steps will reproduce the problem?
1. Call any phone
2.
3.

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

datcard rev175 -> I can hear early media, now cannot

arthem rev175:
Called datacard1/699889560
    -- Datacard/datacard1-0100000000 is making progress passing it to SIP/234-00000005


r46:
Called datacard1/699889560
    -- Datacard/datacard1-0100000000 is making progress passing it to SIP/234-00000005
    -- Datacard/datacard1-0100000000 is ringing


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

r46 on centos 5.5 64 bits

I think you are sending sip 180 ringing but theres is no ring audio. I think it 
should be removed to hear early media from operator  




Original issue reported on code.google.com by [email protected] on 27 Nov 2010 at 11:13

reject calls mode

For outbound calls only, it could be of interest to reject all incoming calls.. 
For example:

rejectincoming = yes

This can be done via dialplan, but I think this could be a nice feature..


Original issue reported on code.google.com by [email protected] on 4 Dec 2010 at 1:07

install-sh missing?

Здравствуйте!

Скачал файл 
http://datacard.googlecode.com/files/chan_datacard-1.0.r284.tgz,
распаковал и запустил ./configure.
Вот ответ:
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." 
"./../.."

Если внутри MC зайти в архив без распаковки - 
там размер файла =0.
После распаковки - размер файла = 35 байт.
В обоих случаях название файла выделено 
красным и со знаком "!" впереди.

# ls ins*
install-sh
# cat install-sh
cat: install-sh: Нет такого файла или каталога

Не пойму в чём дело.





Original issue reported on code.google.com by [email protected] on 23 Jan 2011 at 5:21

Advanced Statistics

CLI> datacard show device statistics

ACD: 3:35  (Average Call Duration) --> Total answered minutes/Total number of 
answered calls
ASR: 78%  (Answered Seize Ratio) --> Total answered calls/Total calls


Original issue reported on code.google.com by [email protected] on 7 Jan 2011 at 10:50

Video call over 3g

Any chance to add the video calling option to it. i know it is posbile over the 
datacard with the original 
software(http://broadbandforum.in/bsnl-3g/63755-tutorial-make-video-calls-huawei
/ )
If u dial out using atdpxxxxxxxxx, it will attempt a video call to the xxxxxxxx 
number!

Original issue reported on code.google.com by [email protected] on 10 Jan 2011 at 10:44

datacard stop/restart control

Desirable:

STOP--
1.- datacard stop now - This command stops the chan_datacard service 
immediately, ending any calls in progress.
2.- datacard stop gracefully - This command prevents new calls from starting up 
in chan_datacard, but allows calls in progress to continue. When all the calls 
have finished, chan_datacard stops.
3.- datacard stop when convenient - This command waits until chan_datacard has 
no calls in progress, and then it stops the service. It does not prevent new 
calls from entering the system.

RESTART---
1.- datacard restart now - This command restarts the chan_datacard service 
immediately, ending any calls in progress.
2.- datacard restart gracefully - This command prevents new calls from starting 
up in chan_datacard, but allows calls in progress to continue. When all the 
calls have finished, chan_datacard restarts.
3.- datacard restart when convenient - This command waits until chan_datacard 
has no calls in progress, and then it restarts the service. It does not prevent 
new calls from entering the system.

Original issue reported on code.google.com by [email protected] on 24 Dec 2010 at 1:02

Ошибка при компиляции 68 ревизии

#autoconf
#automake -a
#configure
#make


/usr/src/datacard-read-only# make
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP  -o app.o -c app.c
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT at_command.o -MF .at_command.o.d -MP  -o 
at_command.o -c at_command.c
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT at_parse.o -MF .at_parse.o.d -MP  -o at_parse.o -c 
at_parse.c
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT at_queue.o -MF .at_queue.o.d -MP  -o at_queue.o -c 
at_queue.c
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT at_read.o -MF .at_read.o.d -MP  -o at_read.o -c 
at_read.c
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT at_response.o -MF .at_response.o.d -MP  -o 
at_response.o -c at_response.c
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT chan_datacard.o -MF .chan_datacard.o.d -MP  -o 
chan_datacard.o -c chan_datacard.c
gcc -D_GNU_SOURCE -I.  -I/usr/include -DHAVE_CONFIG_H  -fvisibility=hidden 
-fPIC -Wall -Wextra -MD -MT channel.o -MF .channel.o.d -MP  -o channel.o -c 
channel.c
channel.c: In function ‘channel_new’:
channel.c:1151: error: ‘struct ast_channel’ has no member named ‘cid’
make: *** [channel.o] Ошибка 1


Asterisk 1.8.0/ OS Ubuntu 10.12 x86

Original issue reported on code.google.com by [email protected] on 7 Dec 2010 at 1:20

Zombi call

In force of HW BUG, because CEND not send for very early cancelled outgoing 
call, cpvt still zombi, and device always busy.


Original issue reported on code.google.com by [email protected] on 7 Dec 2010 at 5:36

received SMS with CR inside

If an incoming SMS has CR inside, then the rest of the message is cut.

Example:

[datacard0] Got SMS from +34699112233: 'hola 
España,  cómo estás?'

but

    -- Executing [sms@data-incoming:1] NoOp("Local/sms@data-incoming-fa4b;1", "Incoming SMS from +34699112233 hola ") in new stack
    -- Executing [sms@data-incoming:2] System("Local/sms@data-incoming-fa4b;1", "echo "2010-12-27 10:48:51 -- datacard0 -- +34699112233: hola " >> /var/log/asterisk/sms.txt") in new stack
    -- Executing [sms@data-incoming:3] Hangup("Local/sms@data-incoming-fa4b;1", "") in new stack


Original issue reported on code.google.com by [email protected] on 27 Dec 2010 at 10:58

imei discovery fail for e1752c

this modem has 4 ports and imei discovery fails:

-- [datacard0] Trying port discovery for IMEI '353220040XXXXXX' IMSI ''
    -- [datacard0] Trying port discovery for IMEI '353220040XXXXXX' IMSI ''
    -- [datacard0] Trying port discovery for IMEI '353220040XXXXXX' IMSI ''


Original issue reported on code.google.com by [email protected] on 13 Jan 2011 at 4:32

occasionally chan_datacard crashes on hangup

What steps will reproduce the problem?

sometimes the channel_driver crashes on hangup

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

asterisk must be restarted

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

asterisk 1.6.2.15-rc1 with chan_datacard r57 on debian etch

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 29 Nov 2010 at 4:09

call waiting AT command failing

What steps will reproduce the problem?

using datacard k3520, k3765 and E1752 in the same usb hub. After load 
chan_datacard.so, we have

[Dec  3 12:48:11] ERROR[7341]: at_response.c:496 at_response_error: [datacard3] 
Received 'ERROR' for unhandled command 'AT+CCWA?'
[Dec  3 12:48:11] ERROR[7343]: at_response.c:496 at_response_error: [datacard1] 
Received 'ERROR' for unhandled command 'AT+CCWA?'
    -- Datacard datacard0 initialized and ready
[Dec  3 12:48:11] ERROR[7344]: at_response.c:496 at_response_error: [datacard0] 
Received 'ERROR' for unhandled command 'AT+CCWA?'
[Dec  3 12:48:12] NOTICE[7342]: at_response.c:1012 at_response_ccwa: Call 
waiting is disabled on device datacard2
sheevapruebas*CLI> datacard show de
devices  device   
sheevapruebas*CLI> datacard show devices
ID           Group State      RSSI Mode Submode Provider Name  Model      
Firmware          IMEI             IMSI             Number        
datacard3    0     GSM not re 0    5    4       NONE           E1752      
11.126.11.00.00   359853032575069  214060400091566  Unknown       
datacard2    0     Free       16   0    0       vodafone ES    K3520      
11.315.05.00.00   353284027028680  214060400091558  Unknown       
datacard1    0     GSM not re 99   0    0       NONE           K3765      
11.126.03.07.00   353054038570305  214060400091565  Unknown    
datacard0    0     GSM not re 99   0    0       NONE           K3520      
11.315.05.00.00   353436037096947  214060400091568  Unknown

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

1 k3520 disable call waiting without problems, but the other one, and also 
k3765 and e1752 fails

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

using r59 on debian squeeze

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 3 Dec 2010 at 11:43

can't parse CLCC line

Sometimes appears in log:

 ERROR[12353] at_response.c: [datacard3] can't parse CLCC line '+CLCC: 1,1,4,0,0,"",145'


Original issue reported on code.google.com by [email protected] on 21 Dec 2010 at 10:39

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.