atefsaeed2010 / asterisk-chan-dongle-01

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

E303 #117

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Good day!
How is about E303s-2 support ?

Original issue reported on code.google.com by alex.ger...@gmail.com on 21 Mar 2013 at 6:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
works for 50%
I can't get modem by IMEI or IMSI code
only like data=/ and audio=/

Original comment by alex.ger...@gmail.com on 25 Mar 2013 at 2:08

GoogleCodeExporter commented 9 years ago
provide usb vendor/device ids and  port map,
also may be use usb modeswitch can help

Original comment by bg_...@mail.ru on 27 Apr 2013 at 3:28

GoogleCodeExporter commented 9 years ago
I have a E303D huwaie usb dongle. I played around with the ttyUSB numbers 
between audio / data to get it working. 

When you connect your device in the dev folder 3 ttyUSB's are created, 0, 1, 2. 
Just play around with them in your dongle.conf for audio and data setting. For 
me audio=/dev/ttypUSB1, data=/dev/ttyUSB2 worked.

Original comment by jsiddha...@mcruiseon.com on 21 Jun 2013 at 4:12

GoogleCodeExporter commented 9 years ago
can confirm that in Latvia, mobile operator TELE2 modem E303s-2 is working two 
way audio calls 

Original comment by einars.b...@gmail.com on 28 Jun 2013 at 3:01

GoogleCodeExporter commented 9 years ago
It's working, but it's not supporting IMEI configuration.
if you have 2 modems - it's a little problem :)

Original comment by alex.ger...@gmail.com on 4 Aug 2013 at 10:25

GoogleCodeExporter commented 9 years ago
E303s-2 works for me. I have downgraded the version 22.157.59.00.00 to 
21.157.31.00.850 to enable voice and all functionality. in dongle show devices 
it appears as E303S      21.157.31.00.850.  voice is working both way. SMS is 
working. I cannot select modem by IMEI or IMSI. it only works with 
audio=//dev/ttyUSB1 and data=//dev/ttyUSB2. 
Trying to check USSD but I don't get any thing in response. still checking on 
it. 

Original comment by naveed.n...@gmail.com on 27 Aug 2013 at 2:15

GoogleCodeExporter commented 9 years ago
after modifying and recompiling  the at_response.c (at_response_cgmm)  ussd 
works. I have added E303S to 7-bit encoding modem list. now every thing works 
perfectly fine, voice (bothway), SMS, USSD. 

Original comment by naveed.n...@gmail.com on 1 Sep 2013 at 10:37

Attachments:

GoogleCodeExporter commented 9 years ago
did you make modem configuration by ime work?

Original comment by rsama...@gmail.com on 6 Sep 2014 at 10:34

GoogleCodeExporter commented 9 years ago
Does configuration by IMEI work now?

Original comment by grddgdgs...@gmail.com on 24 Nov 2014 at 5:45

GoogleCodeExporter commented 9 years ago
cannot compile chan_dongle

2.6.32-431.el6.x86_64
chan_dongle-1.1.r14
Asterisk 13.1.0

command executed DESTDIR="/usr/lib64/asterisk/modules" ./configure
error: configure: error: Can't find "asterisk.h"

yum install asterisk13-devel
command executed DESTDIR="/usr/lib64/asterisk/modules" ./configure = SUCCESSFUL
[root@localhost chan_dongle-1.1.r14]# make
gcc -g -O2 -O6 -I. -D_GNU_SOURCE -I/usr/include -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
In file included from app.c:21:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 
'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
app.c: In function ‘app_status_exec’:
app.c:37: warning: missing initializer
app.c:37: warning: (near initialization for ‘args.resource’)
app.c: In function ‘app_send_sms_exec’:
app.c:82: warning: missing initializer
app.c:82: warning: (near initialization for ‘args.device’)
app.c: In function ‘app_register’:
app.c:162: warning: passing argument 2 of ‘ast_register_application2’ from 
incompatible pointer type
/usr/include/asterisk/module.h:516: note: expected ‘int ()(struct ast_channel 
*, const char *)’ but argument is of type ‘int ()(struct ast_chan nel *, 
void *)’
make: *** [app.o] Error 1

Original comment by alfiecle...@gmail.com on 6 Jan 2015 at 12:26

GoogleCodeExporter commented 9 years ago
Hello,
I finally got it to work ...

# apt-cache policy asterisk
asterisk:
  Installé : 1:11.13.1~dfsg-2+b1

# apt-cache policy asterisk-chan-dongle
asterisk-chan-dongle:
  Installé : 11.13.1-1

Thank you Naveed, I had to downgrade the firmware to version 21.157.31.00.850 
to make it working

lanner*CLI> dongle show device state dongle0
-------------- Status -------------
  Device                  : dongle0
  State                   : Free
  Audio                   : /dev/ttyUSB0
  Data                    : /dev/ttyUSB2
  Voice                   : Yes
  SMS                     : Yes
  Manufacturer            : huawei
  Model                   : E303S
  Firmware                : 21.157.31.00.850
  IMEI                    : 8645670XXXXXXXX
  IMSI                    : 6460401XXXXXXXX
  GSM Registration Status : Registered, home network
  RSSI                    : 13, -87 dBm
  Mode                    : No Service
  Submode                 : No service
  Provider Name           : TELMA
  Location area code      : "2B03"
  Cell ID                 : "5117"
  Subscriber Number       : Unknown
  SMS Service Center      : 002B003200360031003
  Use UCS-2 encoding      : Yes
  USSD use 7 bit encoding : No
  USSD use UCS-2 decoding : Yes
  Tasks in queue          : 0
  Commands in queue       : 0
  Call Waiting            : Disabled
  Current device state    : start
  Desired device state    : start
  When change state       : now
  Calls/Channels          : 0
    Active                : 0
    Held                  : 0
    Dialing               : 0
    Alerting              : 0
    Incoming              : 0
    Waiting               : 0
    Releasing             : 0
    Initializing          : 0

Incoming and outgoing calls & SMS, all working fine!
Thank you guys!

Original comment by laurent....@gmail.com on 16 Jan 2015 at 4:25

GoogleCodeExporter commented 9 years ago
My mistake...

Audio                   : /dev/ttyUSB1
Data                    : /dev/ttyUSB2

Original comment by laurent....@gmail.com on 18 Jan 2015 at 7:04

GoogleCodeExporter commented 9 years ago
I cant find the procedure to downgrade... could you give any advice...

Original comment by betore...@gmail.com on 1 Mar 2015 at 7:35