atefsaeed2010 / asterisk-chan-dongle-01

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

E1750 and Answer command #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

 Hi! I can make two-way calls without any problems, but when I want to insert VoiceMail functions into my extenstion, chan_gongle losts dongle after Answer (or Playback?) command.

Here is simple extention:

[incoming]
exten => 1111111,1,Dial(SIP/support,15,rtm)
    same => 2,Dial(SIP/backup,5,rtm)
    same => 3,Answer
    same => 4,Playback(vm-nobodyavail)
    same => 5,Wait(1)
    same => 6,VoiceMail(100@users)
    same => 7,Playback(vm-goodbye)
    same => 8,Hangup

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

ERROR[101845]: chan_dongle.c:414 do_monitor_phone: [dongle0] Lost connection to 
Dongle

Here is dmesg output:

ugen4.3: <HUAWEI Technology> at usbus4 (disconnected)
u3g0: at uhub5, port 1, addr 3 (disconnected)
ugen4.3: <HUAWEI Technology> at usbus4
u3g0: <HUAWEI Technology HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 3> on 
usbus4
u3g0: Found 3 ports.

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

$ pkg_info -Ix asterisk
asterisk11-11.2.2   An Open Source PBX and telephony toolkit

$ uname -a
FreeBSD server 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 
UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

Please provide any additional information below.

Normal state:

> dongle show device state dongle0
-------------- Status -------------
  Device                  : dongle0
  State                   : Free
  Audio                   : /dev/cuaU0.1
  Data                    : /dev/cuaU0.2
  Voice                   : Yes
  SMS                     : Yes
  Manufacturer            : huawei
  Model                   : E1750
  Firmware                : 11.126.13.00.00
  IMEI                    : 351910043188080
  IMSI                    : 460020010739443
  GSM Registration Status : Registered, roaming
  RSSI                    : 17, -115 dBm
  Mode                    : GSM/GPRS
  Submode                 : EDGE
  Provider Name           : CHINA  MOBILE
  Location area code      : 10F5
  Cell ID                 : 3F1B
  Subscriber Number       : 111111111
  SMS Service Center      : +8613800100500
  Use UCS-2 encoding      : Yes
  USSD use 7 bit encoding : Yes
  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
  When change state       : now
  Calls/Channels          : 0
    Active                : 0
    Held                  : 0
    Dialing               : 0
    Alerting              : 0
    Incoming              : 0
    Waiting               : 0
    Releasing             : 0
    Initializing          : 0

After Answer command:

ERROR[101845]: chan_dongle.c:414 do_monitor_phone: [dongle0] Lost connection to 
Dongle

server*CLI> dongle show device state dongle0
-------------- Status -------------
  Device                  : dongle0
  State                   : Not connected Start scheduled
  Audio                   : /dev/cuaU0.1
  Data                    : /dev/cuaU0.2
  Voice                   : No
  SMS                     : No
  Manufacturer            :
  Model                   :
  Firmware                :
  IMEI                    :
  IMSI                    :
  GSM Registration Status : Unknown
  RSSI                    : 0, <= -125 dBm
  Mode                    : No Service
  Submode                 : No service
  Provider Name           : NONE
  Location area code      :
  Cell ID                 :
  Subscriber Number       : Unknown
  SMS Service Center      :
  Use UCS-2 encoding      : No
  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    : stop
  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

Original issue reported on code.google.com by a...@logvinov.com on 5 Apr 2013 at 1:13

GoogleCodeExporter commented 9 years ago
I've just checked with another simple context. It breaks on Answer command. 

[incoming]
exten => XXXXXXXXX,1,Answer
    same => 2,Dial(SIP/support,15,rtm)

Original comment by a...@logvinov.com on 5 Apr 2013 at 1:21

GoogleCodeExporter commented 9 years ago
device have enough power ?

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

GoogleCodeExporter commented 9 years ago
Yep, I've tried to connect it without any wire or a hub. I can receive sms, 
calls, I also make calls without any problems.

Original comment by a...@logvinov.com on 27 Apr 2013 at 9:46

GoogleCodeExporter commented 9 years ago
Hi!

  It works without any problems on Ubuntu Server 64Bit.

$ uname -a
Linux ubuntu64 3.8.0-19-generic #30-Ubuntu SMP Wed May 1 16:35:23 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

$ asterisk -V
Asterisk 11.3.0

 Something is wrong with FreeBSD support. :(

Original comment by a...@logvinov.com on 22 May 2013 at 7:03

GoogleCodeExporter commented 9 years ago
Modem: E173z-1
OS: CentOS 6.5 2.6.32-431.5.1.el6.x86_64
Also have issue with disconneting dongle while Answer() or Playback()

Original comment by sashail...@gmail.com on 6 Mar 2014 at 8:59