bg111 / asterisk-chan-dongle

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

Is the HUAWEI E3372h supported? #267

Open Gennttii opened 5 years ago

Gennttii commented 5 years ago

Hi,

I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice?

Regards

rohitg76 commented 5 years ago

Hi..

I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations

I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share.

E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support.

/Rohit

From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267)

Hi,

I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice?

Regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Gennttii commented 5 years ago

Hi

Hope you test it soon, and I am new to this, if you can help me with configuration, will give you more details of what I am trying to achieve..

Gennttii commented 5 years ago

Hi man, did you test this model, did it work to you?

Regards

rohitg76 commented 5 years ago

No, did not get to testing it as its commercialization will be troublesome. We were quoted per unit price of $128, which is quite expensive. So sticking to $50-$70 range dongles which are performing well like the E1750/E1752 and more recent E3131.

Regards, Rohit

From: Genti Sent: Wednesday, April 17, 2019 7:34 PM To: bg111/asterisk-chan-dongle Cc: rohitg76 ; Comment Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267)

Hi man, did you test this model, did it work to you?

Regards

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Gennttii commented 5 years ago

Ah, I can buy it for 59€ in my country, look at this store..

https://gjirafa50.com/aksesore-7/pajisje-per-rrjet/modem-3g-4g/modem-huawei-e3372h-4g-lte/

But I am new and I need to start with proven models, if anyone can test this model please tell here if its working with voice..

Best regards

Get Outlook for Androidhttps://aka.ms/ghei36


From: rohitg76 notifications@github.com Sent: Thursday, April 18, 2019 5:26:18 AM To: bg111/asterisk-chan-dongle Cc: Genti; Author Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267)

No, did not get to testing it as its commercialization will be troublesome. We were quoted per unit price of $128, which is quite expensive. So sticking to $50-$70 range dongles which are performing well like the E1750/E1752 and more recent E3131.

Regards, Rohit

From: Genti Sent: Wednesday, April 17, 2019 7:34 PM To: bg111/asterisk-chan-dongle Cc: rohitg76 ; Comment Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267)

Hi man, did you test this model, did it work to you?

Regards

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bg111/asterisk-chan-dongle/issues/267#issuecomment-484342007, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAXXQNUYWYEV7H36KHV3XDTPQ7S5VANCNFSM4G5EDF2A.

kri164 commented 5 years ago

It is not working.

I think the HW is capable to voice call, but firmware support is missing. You can hang up incoming call by ATA command and hangout by ATH command, but modem didnt send RING string to you.

raspbx*CLI> dongle show device state dongle1 -------------- Status -------------
Device : dongle1
State : Free
Audio : /dev/ttyUSB3
Data : /dev/ttyUSB4
Voice : Yes
SMS : Yes
Manufacturer : huawei
Model : E3372
Firmware : 21.326.62.00.55 IMEI : 868230031562212 IMSI : 230015015130868 GSM Registration Status : Registered, home network RSSI : 14, -85 dBm
Mode : No Service
Submode : No service
Provider Name : T-Mobile CZ
Location area code : "6050"
Cell ID : "0FDD89
Subscriber Number : +420xxxxxxxxx
SMS Service Center : 002B003400320030003
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

LukePrylowski commented 4 years ago

Hi guys, any luck with E3372? I am not able to set voice channel. "NO CARRIER". f/w 22.328.62.00.1185

genuineaffairs commented 4 years ago

Hi.. I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share. E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support. /Rohit From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi, I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Dear Rohit, can you please help me with e3131, I have installed the frrepbx 15 distro on asterisk 16, was able to install chan_dongle , can see sms coming but unable to get incomming calls and out going calls, xan u please help me on this, I am using airtel sim with the dongle

rohitg76 commented 4 years ago

Hi Muzammil:

You will need to share a little more to assess what may be happening.

1) What happens when you try to make an outgoing call on the GSM trunk?

2) What happens when you try to send an incoming call to the GSM trunk? Does a CDR get created?

3) Share the dongle configuration and the incoming/outgoing route configs.

4) This is a lame one but is known to have happened – do you have calling minutes for incoming/outgoing calls on the SIM?

Regards, Rohit

From: Muzammil Sent: Monday, January 20, 2020 9:46 PM To: bg111/asterisk-chan-dongle Cc: rohitg76 ; Comment Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267)

Hi.. I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share. E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support. /Rohit From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi, I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Dear Rohit, can you please help me with e3131, I have installed the frrepbx 15 distro on asterisk 16, was able to install chan_dongle , can see sms coming but unable to get incomming calls and out going calls, xan u please help me on this, I am using airtel sim with the dongle

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

GlenCopeland commented 4 years ago

Hi, I’ve been using the E3372h-607 for some time now…….

It was a couple of years ago when I did this, at the time I worked out a procedure that worked and was reproducible, not fully understanding all the pieces! all my notes need a complete review. Suffice to say it is possible…….it is not plug and play.

From: Muzammil notifications@github.com Sent: Tuesday, 21 January 2020 12:47 AM To: bg111/asterisk-chan-dongle asterisk-chan-dongle@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267)

Hi.. I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share. E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support. /Rohit From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267https://github.com/bg111/asterisk-chan-dongle/issues/267) Hi, I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Dear Rohit, can you please help me with e3131, I have installed the frrepbx 15 distro on asterisk 16, was able to install chan_dongle , can see sms coming but unable to get incomming calls and out going calls, xan u please help me on this, I am using airtel sim with the dongle

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/bg111/asterisk-chan-dongle/issues/267?email_source=notifications&email_token=AC3UPEYMQB3EJKGM3LNWFULQ6WTMXA5CNFSM4G5EDF2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJMVX6I#issuecomment-576281593, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC3UPEYHWBZBHT7FDJRWJI3Q6WTMXANCNFSM4G5EDF2A.

genuineaffairs commented 4 years ago

Hi Muzammil: You will need to share a little more to assess what may be happening. 1) What happens when you try to make an outgoing call on the GSM trunk? 2) What happens when you try to send an incoming call to the GSM trunk? Does a CDR get created? 3) Share the dongle configuration and the incoming/outgoing route configs. 4) This is a lame one but is known to have happened – do you have calling minutes for incoming/outgoing calls on the SIM? Regards, Rohit From: Muzammil Sent: Monday, January 20, 2020 9:46 PM To: bg111/asterisk-chan-dongle Cc: rohitg76 ; Comment Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi.. I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share. E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support. /Rohit From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi, I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. Dear Rohit, can you please help me with e3131, I have installed the frrepbx 15 distro on asterisk 16, was able to install chan_dongle , can see sms coming but unable to get incomming calls and out going calls, xan u please help me on this, I am using airtel sim with the dongle — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks Rohit for prompt response. freepbx*CLI> dongle show devices ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Free 17 3 3 Dolphin E3131 21.157.41.00.74 862732019502595 404691101775100 +9199695*****

[root@freepbx ~]# cat /etc/asterisk/dongle.conf [general]

interval=15 ; Number of seconds between trying to connect to devices

;------------------------------ JITTER BUFFER CONFIGURATION -------------------------- ;jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a ; Dongle channel. Defaults to "no". An enabled jitterbuffer will ; be used only if the sending side can create and the receiving ; side can not accept jitter. The Dongle channel can't accept jitter, ; thus an enabled jitterbuffer on the receive Dongle side will always ; be used if the sending side can create jitter.

;jbforce = no ; Forces the use of a jitterbuffer on the receive side of a Dongle ; channel. Defaults to "no".

;jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.

;jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is ; resynchronized. Useful to improve the quality of the voice, with ; big jumps in/broken timestamps, usually sent from exotic devices ; and programs. Defaults to 1000.

;jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a Dongle ; channel. Two implementations are currently available - "fixed" ; (with size always equals to jbmaxsize) and "adaptive" (with ; variable size, actually the new jb of IAX2). Defaults to fixed.

;jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set. ; The option represents the number of milliseconds by which the new jitter buffer ; will pad its size. the default is 40, so without modification, the new ; jitter buffer will set its size to the jitter value plus 40 milliseconds. ; increasing this value may help if your network normally has low jitter, ; but occasionally has spikes.

;jblog = no ; Enables jitterbuffer frame logging. Defaults to "no". ;-----------------------------------------------------------------------------------

[defaults] ; now you can set here any not required device settings as template ; sure you can overwrite in any [device] section this default values

context=dongle-incoming ; context for incoming calls group=0 ; calling group rxgain=0 ; increase the incoming volume; may be negative txgain=0 ; increase the outgoint volume; may be negative autodeletesms=yes ; auto delete incoming sms resetdongle=yes ; reset dongle during initialization with ATZ command u2diag=-1 ; set ^U2DIAG parameter on device (0 = disable everything except modem function) ; -1 not use ^U2DIAG command usecallingpres=yes ; use the caller ID presentation or not callingpres=allowed_passed_screen ; set caller ID presentation by default use default network settings disablesms=no ; disable of SMS reading from device when received ; chan_dongle has currently a bug with SMS reception. When a SMS gets in during a ; call chan_dongle might crash. Enable this option to disable sms reception. ; default = no

language=en ; set channel default language smsaspdu=yes ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we strongly recommend say 'yes' mindtmfgap=45 ; minimal interval from end of previews DTMF from begining of next in ms mindtmfduration=80 ; minimal DTMF tone duration in ms mindtmfinterval=200 ; minimal interval between ends of DTMF of same digits in ms

callwaiting=yes ; if 'yes' allow incoming calls waiting; by default use network settings ; if 'no' waiting calls just ignored disable=no ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this section

initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote' ; 'remove' same as 'disable=yes'

exten=+919969**** ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid)

dtmf=relax ; control of incoming DTMF detection, possible values: ; off - off DTMF tones detection, voice data passed to asterisk unaltered ; use this value for gateways or if not use DTMF for AVR or inside dialplan ; inband - do DTMF tones detection ; relax - like inband but with relaxdtmf option ; default is 'relax' by compatibility reason

; dongle required settings [dongle0] audio=/dev/ttyUSB1 ; tty port for audio connection; no default value data=/dev/ttyUSB2 ; tty port for AT commands; no default value

; or you can omit both audio and data together and use imei=123456789012345 and/or imsi=123456789012345 ; imei and imsi must contain exactly 15 digits ! ; imei/imsi discovery is available on Linux only imei=862732019502595 imsi=404691101775100

; if audio and data set together with imei and/or imsi audio and data has precedence ; you can use both imei and imsi together in this case exact match by imei and imsi required

I can see SMS comming in, but not call. Calls are being directed to operator i.e MTNL. (iie. Number rings when in modem)

I have messed up inbound and outbound config(My guess, as I did lots of trial & errors while fixing it). It would be great if you could give me precise steps to set inbound & outbound routes,

Regards

If you could please help me with

rohitg76 commented 4 years ago

Hi Muzammil:

I would suggest four key changes to your chan_dongle config.

1) Define the “dongle-incoming” context as follows, if not already done in similar way.

exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})}) exten => sms,n,System(echo "To: your@email.com\nSubject: Incoming SMS from ${CALLERID(num)}\n\n${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}: " > /tmp/sms.txt) exten => sms,n,Set(FILE(/tmp/sms.txt,,,a)=${BASE64_DECODE(${SMS_BASE64})}) exten => sms,n,System(sendmail -t < /tmp/sms.txt) exten => sms,n,System(rm -f /tmp/sms.txt) exten => sms,n,Hangup() exten => ussd,1,Verbose(Incoming USSD MSG from ${BASE64_DECODE(${USSD_BASE64})}) exten => ussd,n,System(echo "To: your@email.com\nSubject: Incoming USSD MSG from ${BASE64_DECODE(${USSD_BASE64})}\n\n${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${BASE64_DECODE(${USSD_BASE64})}: " > /tmp/ussd.txt) exten => ussd,n,Set(FILE(/tmp/ussd.txt,,,a)=${BASE64_DECODE(${USSDBASE64})}) exten => ussd,n,System(sendmail -t < /tmp/ussd.txt) exten => ussd,n,System(rm -f /tmp/ussd.txt) exten => ussd,n,Hangup() exten => .,1,Set(CALLERID(name)=${CALLERID(num)}) exten => _.,n,Goto(from-trunk,${EXTEN},1)

2) Define dongle0 config either using audio/data tty ports or imei/imsi, but not both. For example, refer below. [dongle0] ; Trunk Custom Dial String as dongle/dongle0/$OUTNUM$ exten=+919969**** ; CallerID (Update with Mobile number) audio=/dev/ttyUSB1 ; tty port for audio connection (not needed if imei/imsi provided) data=/dev/ttyUSB2 ; tty port for AT commands (not needed if imei/imsi provided) ;imei=123456789012345 ; IMEI of Huawei E3131 Dongle ;imsi=123456789012345 ; IMSI of SIM (Update with IMSI of SIM)

OR

[dongle0] ; Trunk Custom Dial String as dongle/dongle0/$OUTNUM$ exten=+919969**** ; CallerID (Update with Mobile number) ;audio=/dev/ttyUSB1 ; tty port for audio connection (not needed if imei/imsi provided) ;data=/dev/ttyUSB2 ; tty port for AT commands (not needed if imei/imsi provided) imei=862732019502595 ; IMEI of Huawei E3131 Dongle imsi=404691101775100 ; IMSI of SIM (Update with IMSI of SIM) 3) Define a custom trunk if using FreePBX with Custom Dial String as “dongle/dongle0/$OUTNUM$” 4) Once all this starts working, you’ll likely face an issue with recognizing dtmf tones (typically in IVRs) in India with an Indian SIM. I had used an Airtel SIM once and was required to reduce mindtmfduration=80 to mindtmfduration=50 to make it work. In fact mindtmfduration=50 works with global SIMs too – hence, we now use that as default. Hope this helps. Regards, Rohit From: Muzammil Sent: Thursday, January 23, 2020 6:53 PM To: bg111/asterisk-chan-dongle Cc: rohitg76 ; Comment Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267)

Hi Muzammil: You will need to share a little more to assess what may be happening. 1) What happens when you try to make an outgoing call on the GSM trunk? 2) What happens when you try to send an incoming call to the GSM trunk? Does a CDR get created? 3) Share the dongle configuration and the incoming/outgoing route configs. 4) This is a lame one but is known to have happened – do you have calling minutes for incoming/outgoing calls on the SIM? Regards, Rohit From: Muzammil Sent: Monday, January 20, 2020 9:46 PM To: bg111/asterisk-chan-dongle Cc: rohitg76 ; Comment Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi.. I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share. E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support. /Rohit From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi, I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. Dear Rohit, can you please help me with e3131, I have installed the frrepbx 15 distro on asterisk 16, was able to install chan_dongle , can see sms coming but unable to get incomming calls and out going calls, xan u please help me on this, I am using airtel sim with the dongle — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks Rohit for prompt response. freepbx*CLI> dongle show devices ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number dongle0 0 Free 17 3 3 Dolphin E3131 21.157.41.00.74 862732019502595 404691101775100 +9199695*****

[root@freepbx ~]# cat /etc/asterisk/dongle.conf [general]

interval=15 ; Number of seconds between trying to connect to devices

;------------------------------ JITTER BUFFER CONFIGURATION -------------------------- ;jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a ; Dongle channel. Defaults to "no". An enabled jitterbuffer will ; be used only if the sending side can create and the receiving ; side can not accept jitter. The Dongle channel can't accept jitter, ; thus an enabled jitterbuffer on the receive Dongle side will always ; be used if the sending side can create jitter.

;jbforce = no ; Forces the use of a jitterbuffer on the receive side of a Dongle ; channel. Defaults to "no".

;jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.

;jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is ; resynchronized. Useful to improve the quality of the voice, with ; big jumps in/broken timestamps, usually sent from exotic devices ; and programs. Defaults to 1000.

;jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a Dongle ; channel. Two implementations are currently available - "fixed" ; (with size always equals to jbmaxsize) and "adaptive" (with ; variable size, actually the new jb of IAX2). Defaults to fixed.

;jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set. ; The option represents the number of milliseconds by which the new jitter buffer ; will pad its size. the default is 40, so without modification, the new ; jitter buffer will set its size to the jitter value plus 40 milliseconds. ; increasing this value may help if your network normally has low jitter, ; but occasionally has spikes.

;jblog = no ; Enables jitterbuffer frame logging. Defaults to "no". ;-----------------------------------------------------------------------------------

[defaults] ; now you can set here any not required device settings as template ; sure you can overwrite in any [device] section this default values

context=dongle-incoming ; context for incoming calls group=0 ; calling group rxgain=0 ; increase the incoming volume; may be negative txgain=0 ; increase the outgoint volume; may be negative autodeletesms=yes ; auto delete incoming sms resetdongle=yes ; reset dongle during initialization with ATZ command u2diag=-1 ; set ^U2DIAG parameter on device (0 = disable everything except modem function) ; -1 not use ^U2DIAG command usecallingpres=yes ; use the caller ID presentation or not callingpres=allowed_passed_screen ; set caller ID presentation by default use default network settings disablesms=no ; disable of SMS reading from device when received ; chan_dongle has currently a bug with SMS reception. When a SMS gets in during a ; call chan_dongle might crash. Enable this option to disable sms reception. ; default = no

language=en ; set channel default language smsaspdu=yes ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we strongly recommend say 'yes' mindtmfgap=45 ; minimal interval from end of previews DTMF from begining of next in ms mindtmfduration=80 ; minimal DTMF tone duration in ms mindtmfinterval=200 ; minimal interval between ends of DTMF of same digits in ms

callwaiting=yes ; if 'yes' allow incoming calls waiting; by default use network settings ; if 'no' waiting calls just ignored disable=no ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this section

initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote' ; 'remove' same as 'disable=yes'

exten=+919969**** ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid)

dtmf=relax ; control of incoming DTMF detection, possible values: ; off - off DTMF tones detection, voice data passed to asterisk unaltered ; use this value for gateways or if not use DTMF for AVR or inside dialplan ; inband - do DTMF tones detection ; relax - like inband but with relaxdtmf option ; default is 'relax' by compatibility reason

; dongle required settings [dongle0] audio=/dev/ttyUSB1 ; tty port for audio connection; no default value data=/dev/ttyUSB2 ; tty port for AT commands; no default value

; or you can omit both audio and data together and use imei=123456789012345 and/or imsi=123456789012345 ; imei and imsi must contain exactly 15 digits ! ; imei/imsi discovery is available on Linux only imei=862732019502595 imsi=404691101775100

; if audio and data set together with imei and/or imsi audio and data has precedence ; you can use both imei and imsi together in this case exact match by imei and imsi required

I can see SMS comming in, but not call. Calls are being directed to operator i.e MTNL. (iie. Number rings when in modem)

I have messed up inbound and outbound config(My guess, as I did lots of trial & errors while fixing it). It would be great if you could give me precise steps to set inbound & outbound routes,

Regards

If you could please help me with

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

genuineaffairs commented 4 years ago

Hi Muzammil: You will need to share a little more to assess what may be happening. 1) What happens when you try to make an outgoing call on the GSM trunk? 2) What happens when you try to send an incoming call to the GSM trunk? Does a CDR get created? 3) Share the dongle configuration and the incoming/outgoing route configs. 4) This is a lame one but is known to have happened – do you have calling minutes for incoming/outgoing calls on the SIM? Regards, Rohit From: Muzammil Sent: Monday, January 20, 2020 9:46 PM To: bg111/asterisk-chan-dongle Cc: rohitg76 ; Comment Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi.. I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share. E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support. /Rohit From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi, I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. Dear Rohit, can you please help me with e3131, I have installed the frrepbx 15 distro on asterisk 16, was able to install chan_dongle , can see sms coming but unable to get incomming calls and out going calls, xan u please help me on this, I am using airtel sim with the dongle — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks a bunch Rohit, I modified the things as per your suggestions, still no luck, might be I am missing something. Here is my latest changes

freepbx*CLI> dongle show devices ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Free 17 0 0 Dolphin E3131 21.157.41.00.74 862732019502595 404691101775100 +9199695***

[root@freepbx asterisk-chan-dongle]# cat /etc/asterisk/dongle.conf [general]

interval=15 ; Number of seconds between trying to connect to devices

;------------------------------ JITTER BUFFER CONFIGURATION -------------------------- ;jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a ; Dongle channel. Defaults to "no". An enabled jitterbuffer will ; be used only if the sending side can create and the receiving ; side can not accept jitter. The Dongle channel can't accept jitter, ; thus an enabled jitterbuffer on the receive Dongle side will always ; be used if the sending side can create jitter.

;jbforce = no ; Forces the use of a jitterbuffer on the receive side of a Dongle ; channel. Defaults to "no".

;jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.

;jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is ; resynchronized. Useful to improve the quality of the voice, with ; big jumps in/broken timestamps, usually sent from exotic devices ; and programs. Defaults to 1000.

;jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a Dongle ; channel. Two implementations are currently available - "fixed" ; (with size always equals to jbmaxsize) and "adaptive" (with ; variable size, actually the new jb of IAX2). Defaults to fixed.

;jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set. ; The option represents the number of milliseconds by which the new jitter buffer ; will pad its size. the default is 40, so without modification, the new ; jitter buffer will set its size to the jitter value plus 40 milliseconds. ; increasing this value may help if your network normally has low jitter, ; but occasionally has spikes.

;jblog = no ; Enables jitterbuffer frame logging. Defaults to "no". ;-----------------------------------------------------------------------------------

[defaults] ; now you can set here any not required device settings as template ; sure you can overwrite in any [device] section this default values

context=dongle-incomming ; context for incoming calls group=0 ; calling group rxgain=0 ; increase the incoming volume; may be negative txgain=0 ; increase the outgoint volume; may be negative autodeletesms=yes ; auto delete incoming sms resetdongle=yes ; reset dongle during initialization with ATZ command u2diag=-1 ; set ^U2DIAG parameter on device (0 = disable everything except modem function) ; -1 not use ^U2DIAG command usecallingpres=yes ; use the caller ID presentation or not callingpres=allowed_passed_screen ; set caller ID presentation by default use default network settings disablesms=no ; disable of SMS reading from device when received ; chan_dongle has currently a bug with SMS reception. When a SMS gets in during a ; call chan_dongle might crash. Enable this option to disable sms reception. ; default = no

language=en ; set channel default language smsaspdu=yes ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we strongly recommend say 'yes' mindtmfgap=45 ; minimal interval from end of previews DTMF from begining of next in ms mindtmfduration=50 ; minimal DTMF tone duration in ms mindtmfinterval=200 ; minimal interval between ends of DTMF of same digits in ms

callwaiting=auto ; if 'yes' allow incoming calls waiting; by default use network settings ; if 'no' waiting calls just ignored disable=no ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this section

initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote' ; 'remove' same as 'disable=yes'

;exten=+919969517177 ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid)

dtmf=relax ; control of incoming DTMF detection, possible values: ; off - off DTMF tones detection, voice data passed to asterisk unaltered ; use this value for gateways or if not use DTMF for AVR or inside dialplan ; inband - do DTMF tones detection ; relax - like inband but with relaxdtmf option ; default is 'relax' by compatibility reason

; dongle required settings [dongle0] exten=+919969517177 audio=/dev/ttyUSB1 ; tty port for audio connection; no default value data=/dev/ttyUSB2 ; tty port for AT commands; no default value ;context=from-trunk ; or you can omit both audio and data together and use imei=123456789012345 and/or imsi=123456789012345 ; imei and imsi must contain exactly 15 digits ! ; imei/imsi discovery is available on Linux only ;imei=123456789012345 ;imsi=123456789012345

[dongle-incomming] exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})}) exten => sms,n,System(echo "To: your@email.com\nSubject: Incoming SMS from ${CALLERID(num)}\n\n${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}: " > /tmp/sms.txt) exten => sms,n,Set(FILE(/tmp/sms.txt,,,a)=${BASE64_DECODE(${SMS_BASE64})}) exten => sms,n,System(sendmail -t < /tmp/sms.txt) exten => sms,n,System(rm -f /tmp/sms.txt) exten => sms,n,Hangup() exten => ussd,1,Verbose(Incoming USSD MSG from ${BASE64_DECODE(${USSD_BASE64})}) exten => ussd,n,System(echo "To: your@email.com\nSubject: Incoming USSD MSG from ${BASE64_DECODE(${USSD_BASE64})}\n\n${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${BASE64_DECODE(${USSD_BASE64})}: " > /tmp/ussd.txt) exten => ussd,n,Set(FILE(/tmp/ussd.txt,,,a)=${BASE64_DECODE(${USSDBASE64})}) exten => ussd,n,System(sendmail -t < /tmp/ussd.txt) exten => ussd,n,System(rm -f /tmp/ussd.txt) exten => ussd,n,Hangup() exten => .,1,Set(CALLERID(name)=${CALLERID(num)}) exten => _.,n,Goto(from-trunk,${EXTEN},1)

Inbound Route on freepbx DID CID Description Destination Actions
Any Any DefaultIN Misc Destinations: AgtCell  

Outbound route i have set to trunk i defiend dongle/dongle0/$OUTNUM$

We can also connect on anydesk or something to get you clear details, your help would be much appreciated. Regards

rohitg76 commented 4 years ago

Hi Muzammil:

The dongle seems OK and SIM seems OK too - the state is Free which indicates it is registered and free to make/recv calls. With the incoming route you’ve set, is the AgtCell extension registered and status OK in sip show peer details? Is there any CDR record created for incoming or outgoing call? I think calls must be coming in with this config in place.

Do you have freepbx in your setup or asterisk only?

You can email me your anydesk details at support@crux-labs.com.

Regards, Rohit

From: Muzammil Sent: Monday, January 27, 2020 3:36 AM To: bg111/asterisk-chan-dongle Cc: rohitg76 ; Comment Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267)

Hi Muzammil: You will need to share a little more to assess what may be happening. 1) What happens when you try to make an outgoing call on the GSM trunk? 2) What happens when you try to send an incoming call to the GSM trunk? Does a CDR get created? 3) Share the dongle configuration and the incoming/outgoing route configs. 4) This is a lame one but is known to have happened – do you have calling minutes for incoming/outgoing calls on the SIM? Regards, Rohit From: Muzammil Sent: Monday, January 20, 2020 9:46 PM To: bg111/asterisk-chan-dongle Cc: rohitg76 ; Comment Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi.. I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share. E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support. /Rohit From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi, I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. Dear Rohit, can you please help me with e3131, I have installed the frrepbx 15 distro on asterisk 16, was able to install chan_dongle , can see sms coming but unable to get incomming calls and out going calls, xan u please help me on this, I am using airtel sim with the dongle — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks a bunch Rohit, I modified the things as per your suggestions, still no luck, might be I am missing something. Here is my latest changes

freepbxCLI> dongle show devices ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number dongle0 0 Free 17 0 0 Dolphin E3131 21.157.41.00.74 862732019502595 404691101775100 +9199695**

[root@freepbx asterisk-chan-dongle]# cat /etc/asterisk/dongle.conf [general]

interval=15 ; Number of seconds between trying to connect to devices

;------------------------------ JITTER BUFFER CONFIGURATION -------------------------- ;jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a ; Dongle channel. Defaults to "no". An enabled jitterbuffer will ; be used only if the sending side can create and the receiving ; side can not accept jitter. The Dongle channel can't accept jitter, ; thus an enabled jitterbuffer on the receive Dongle side will always ; be used if the sending side can create jitter.

;jbforce = no ; Forces the use of a jitterbuffer on the receive side of a Dongle ; channel. Defaults to "no".

;jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.

;jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is ; resynchronized. Useful to improve the quality of the voice, with ; big jumps in/broken timestamps, usually sent from exotic devices ; and programs. Defaults to 1000.

;jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a Dongle ; channel. Two implementations are currently available - "fixed" ; (with size always equals to jbmaxsize) and "adaptive" (with ; variable size, actually the new jb of IAX2). Defaults to fixed.

;jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set. ; The option represents the number of milliseconds by which the new jitter buffer ; will pad its size. the default is 40, so without modification, the new ; jitter buffer will set its size to the jitter value plus 40 milliseconds. ; increasing this value may help if your network normally has low jitter, ; but occasionally has spikes.

;jblog = no ; Enables jitterbuffer frame logging. Defaults to "no". ;-----------------------------------------------------------------------------------

[defaults] ; now you can set here any not required device settings as template ; sure you can overwrite in any [device] section this default values

context=dongle-incomming ; context for incoming calls group=0 ; calling group rxgain=0 ; increase the incoming volume; may be negative txgain=0 ; increase the outgoint volume; may be negative autodeletesms=yes ; auto delete incoming sms resetdongle=yes ; reset dongle during initialization with ATZ command u2diag=-1 ; set ^U2DIAG parameter on device (0 = disable everything except modem function) ; -1 not use ^U2DIAG command usecallingpres=yes ; use the caller ID presentation or not callingpres=allowed_passed_screen ; set caller ID presentation by default use default network settings disablesms=no ; disable of SMS reading from device when received ; chan_dongle has currently a bug with SMS reception. When a SMS gets in during a ; call chan_dongle might crash. Enable this option to disable sms reception. ; default = no

language=en ; set channel default language smsaspdu=yes ; if 'yes' send SMS in PDU mode, feature implementation incomplete and we strongly recommend say 'yes' mindtmfgap=45 ; minimal interval from end of previews DTMF from begining of next in ms mindtmfduration=50 ; minimal DTMF tone duration in ms mindtmfinterval=200 ; minimal interval between ends of DTMF of same digits in ms

callwaiting=auto ; if 'yes' allow incoming calls waiting; by default use network settings ; if 'no' waiting calls just ignored disable=no ; OBSOLETED by initstate: if 'yes' no load this device and just ignore this section

initstate=start ; specified initial state of device, must be one of 'stop' 'start' 'remote' ; 'remove' same as 'disable=yes'

;exten=+919969517177 ; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid)

dtmf=relax ; control of incoming DTMF detection, possible values: ; off - off DTMF tones detection, voice data passed to asterisk unaltered ; use this value for gateways or if not use DTMF for AVR or inside dialplan ; inband - do DTMF tones detection ; relax - like inband but with relaxdtmf option ; default is 'relax' by compatibility reason

; dongle required settings [dongle0] exten=+919969517177 audio=/dev/ttyUSB1 ; tty port for audio connection; no default value data=/dev/ttyUSB2 ; tty port for AT commands; no default value ;context=from-trunk ; or you can omit both audio and data together and use imei=123456789012345 and/or imsi=123456789012345 ; imei and imsi must contain exactly 15 digits ! ; imei/imsi discovery is available on Linux only ;imei=123456789012345 ;imsi=123456789012345

[dongle-incomming] exten => sms,1,Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})}) exten => sms,n,System(echo "To: your@email.com\nSubject: Incoming SMS from ${CALLERID(num)}\n\n${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}: " > /tmp/sms.txt) exten => sms,n,Set(FILE(/tmp/sms.txt,,,a)=${BASE64_DECODE(${SMS_BASE64})}) exten => sms,n,System(sendmail -t < /tmp/sms.txt) exten => sms,n,System(rm -f /tmp/sms.txt) exten => sms,n,Hangup() exten => ussd,1,Verbose(Incoming USSD MSG from ${BASE64_DECODE(${USSD_BASE64})}) exten => ussd,n,System(echo "To: your@email.com\nSubject: Incoming USSD MSG from ${BASE64_DECODE(${USSD_BASE64})}\n\n${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${BASE64_DECODE(${USSD_BASE64})}: " > /tmp/ussd.txt) exten => ussd,n,Set(FILE(/tmp/ussd.txt,,,a)=${BASE64_DECODE(${USSDBASE64})}) exten => ussd,n,System(sendmail -t < /tmp/ussd.txt) exten => ussd,n,System(rm -f /tmp/ussd.txt) exten => ussd,n,Hangup() exten => .,1,Set(CALLERID(name)=${CALLERID(num)}) exten => _.,n,Goto(from-trunk,${EXTEN},1)

Inbound Route on freepbx DID CID Description Destination Actions
Any Any DefaultIN Misc Destinations: AgtCell

Outbound route i have set to trunk i defiend dongle/dongle0/$OUTNUM$

We can also connect on anydesk or something to get you clear details, your help would be much appreciated. Regards

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

shalzz commented 3 years ago

Hi, I’ve been using the E3372h-607 for some time now……. - only for SMS - firmware on the E3372h has to be ‘modem/stick mode’ not ‘HiLink’ - at_command.c has to be modified to remove AT commands not supported by the firmware. It was a couple of years ago when I did this, at the time I worked out a procedure that worked and was reproducible, not fully understanding all the pieces! all my notes need a complete review. Suffice to say it is possible…….it is not plug and play. From: Muzammil notifications@github.com Sent: Tuesday, 21 January 2020 12:47 AM To: bg111/asterisk-chan-dongle asterisk-chan-dongle@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267) Hi.. I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share. E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support. /Rohit From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267<#267>) Hi, I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. Dear Rohit, can you please help me with e3131, I have installed the frrepbx 15 distro on asterisk 16, was able to install chan_dongle , can see sms coming but unable to get incomming calls and out going calls, xan u please help me on this, I am using airtel sim with the dongle — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#267?email_source=notifications&email_token=AC3UPEYMQB3EJKGM3LNWFULQ6WTMXA5CNFSM4G5EDF2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJMVX6I#issuecomment-576281593>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC3UPEYHWBZBHT7FDJRWJI3Q6WTMXANCNFSM4G5EDF2A.

Hi @GlenCopeland ,

Can you please share you repo of the changes needed to get e3372h working? I already have the firmware flash to be e3372s and switched to the stick mode. However I'm unable to get past the " GSM not registered" stage

GlenCopeland commented 3 years ago

Hi,

The last time I built the driver it failed, the driver had undergone significant changes, I am using an old version! chan_dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 43gh=47cg. at_command.c static const char cmd15[] = "AT+CREG?\r"; // static const char cmd16[] = "AT+CNUM\r";

    static const char cmd17[] = "AT^CVOICE?\r";

// static const char cmd18[] = "AT+CLIP=0\r"; static const char cmd19[] = "AT+CSSN=1,1\r"; static const char cmd21[] = "AT+CSCS=\"UCS2\"\r";

    static const char cmd22[] = "AT+CPMS=\"SM\",\"SM\",\"SM\"\r";
    static const char cmd23[] = "AT+CNMI=2,1,0,0,0\r";

// static const char cmd24[] = "AT+CSQ\r";

          ATQ_CMD_DECLARE_ST(CMD_AT_CREG, cmd15),         /* GSM registration status */

// ATQ_CMD_DECLARE_ST(CMD_AT_CNUM, cmd16), / Get Subscriber number / ATQ_CMD_DECLARE_ST(CMD_AT_CVOICE, cmd17), / read the current voice mode, and return sampling rate、data bit、frame period /

            ATQ_CMD_DECLARE_ST(CMD_AT_CSCA, cmd6),          /* Get SMS Service center address */

// ATQ_CMD_DECLARE_ST(CMD_AT_CLIP, cmd18), / disable Calling line identification presentation in unsolicited response +CLIP: ,[,,[,[][,]] / ATQ_CMD_DECLARE_ST(CMD_AT_CSSN, cmd19), / activate Supplementary Service Notification with CSSI and CSSU / ATQ_CMD_DECLARE_DYN(CMD_AT_CMGF), / Set Message Format /

            ATQ_CMD_DECLARE_STI(CMD_AT_CSCS, cmd21),        /* UCS-2 text encoding */

            ATQ_CMD_DECLARE_ST(CMD_AT_CPMS, cmd22),         /* SMS Storage Selection */
                    /* pvt->initialized = 1 after successful of CMD_AT_CNMI */
            ATQ_CMD_DECLARE_ST(CMD_AT_CNMI, cmd23),         /* New SMS Notification Setting +CNMI=[<mode>[,<mt>[,<bm>[,<ds>[,<bfr>]]]]] */

// ATQ_CMD_DECLARE_ST(CMD_AT_CSQ, cmd24), / Query Signal quality /

Please let me know if I can help with testing.

From: Shaleen Jain @.> Sent: Saturday, 24 July 2021 1:30 AM To: bg111/asterisk-chan-dongle @.> Cc: Glen Copeland @.>; Mention @.> Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267)

Hi, I’ve been using the E3372h-607 for some time now……. - only for SMS - firmware on the E3372h has to be ‘modem/stick mode’ not ‘HiLink’ - at_command.c has to be modified to remove AT commands not supported by the firmware. It was a couple of years ago when I did this, at the time I worked out a procedure that worked and was reproducible, not fully understanding all the pieces! all my notes need a complete review. Suffice to say it is possible…….it is not plug and play. From: Muzammil @.**@.> Sent: Tuesday, 21 January 2020 12:47 AM To: bg111/asterisk-chan-dongle @.**@.> Cc: Subscribed @.**@.> Subject: Re: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267https://github.com/bg111/asterisk-chan-dongle/issues/267) Hi.. I am in the process of getting E3372h from Huawei to test. Recently tested E3131 successfully for simultaneous voice (chan_dongle, on Asterisk 13 and FreePBX13) and data (ppp). E3131 is not yet listed in the compatible dongles list at https://github.com/bg111/asterisk-chan-dongle/wiki/Requirements-and-Limitations I can appraise you once I conclude the test with E3372h. If anyone else has already tested with E3372h then please share. E3372h is a 4G dongle and currently being sold by Huawei directly in most countries, hence, a good model to test. Specs indicate it has both voice and data support. /Rohit From: Genti Sent: Tuesday, March 12, 2019 12:26 AM To: bg111/asterisk-chan-dongle Cc: Subscribed Subject: [bg111/asterisk-chan-dongle] Is the HUAWEI E3372h supported? (#267https://github.com/bg111/asterisk-chan-dongle/issues/267<#267https://github.com/bg111/asterisk-chan-dongle/issues/267>) Hi, I would like to know if someone has tested Modem HUAWEI E3372h, does it work with asterisk chan dongle, and does it support voice? Regards — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. Dear Rohit, can you please help me with e3131, I have installed the frrepbx 15 distro on asterisk 16, was able to install chan_dongle , can see sms coming but unable to get incomming calls and out going calls, xan u please help me on this, I am using airtel sim with the dongle — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<#267https://github.com/bg111/asterisk-chan-dongle/issues/267?email_source=notifications&email_token=AC3UPEYMQB3EJKGM3LNWFULQ6WTMXA5CNFSM4G5EDF2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJMVX6I#issuecomment-576281593>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC3UPEYHWBZBHT7FDJRWJI3Q6WTMXANCNFSM4G5EDF2A.

Hi @GlenCopelandhttps://github.com/GlenCopeland ,

Can you please share you repo of the changes needed to get e3372h working? I already have the firmware flash to be e3372s and switched to the stick mode. However I'm unable to get past the " GSM not registered" stage

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/bg111/asterisk-chan-dongle/issues/267#issuecomment-885720290, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC3UPEZSEK6HFS6L7FQY5H3TZGDJBANCNFSM4G5EDF2A.

shalzz commented 3 years ago

Thanks @GlenCopeland,

It seems the chan-dongle is able to initialize the dongle as I see this in my log: VERBOSE[7378]: at_response.c:162 in at_response_ok: [dongle0] Dongle initialized and ready And after that continuously DEBUG[10080]: at_response_ok: [dongle0] AT sent successfully

However even with your changes the dongle is in GSM not registered

Here's the complete state output:

-------------- Status -------------
  Device                  : dongle0
  State                   : GSM not registered
  Audio                   : /dev/ttyUSB1
  Data                    : /dev/ttyUSB0
  Voice                   : Yes
  SMS                     : Yes
  Manufacturer            : huawei
  Model                   : E3372
  Firmware                : 21.180.01.00.00
  IMEI                    : 866785035270619
  IMSI                    : 404100609653704
  GSM Registration Status : Not registered, but searching
  RSSI                    : 0, <= -113 dBm
  Mode                    : No Service
  Submode                 : No service
  Provider Name           : NONE
  Location area code      :
  Cell ID                 :
  Subscriber Number       : Unknown
  SMS Service Center      : +919810051914
  Use UCS-2 encoding      : 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
shalzz commented 3 years ago

Ok, so it seem I had an incorrect firmware version. After flashing the correct version, the dongle is registered successfully on a network and I'm able to receive sms. I've yet to try receiving and making calls. If any one else wants to try using this dongle you can build from my fork with the required changes here: https://github.com/shalzz/asterisk-chan-dongle/tree/master

dmitry commented 3 years ago

@shalzz did you made it working? Does it have voice support?

cod3r-dev commented 2 years ago

Any success with Huawei E3372 + calling feature?

shalzz commented 2 years ago

No, voice doesn't work on E3372h as I don't think it has voice hardware

arf3lix commented 3 weeks ago

what about E3372s ?