wdoekes / asterisk-chan-dongle

chan_dongle channel driver for Huawei UMTS cards, works with Asterisk 14+
Other
296 stars 104 forks source link

Quectel EC25 #149

Closed epipenau closed 2 years ago

epipenau commented 2 years ago

Hi, I have attempted to use this module for the Quectel EC25 in a PinePhone. Asterisk can Answer calls but I hear no audio.

I don't know where to go from here.

Any help would be greatly appreciated.

wdoekes commented 2 years ago

I don't know where to go from here.

Neither do I. Did you use the latest version? (Which git commit?) Quectel support is experimental at best, as you can see in #144.

I own no Quectel, nor any other dongle, so you're on your own debugging your device. You can try https://github.com/t4rd15/asterisk-chan-quectel and see if it does work for you. And then play a game of spot the differences.

epipenau commented 2 years ago

yeah I used the latest version.

I have tried that module as well, same problem. I have a mips board with a quectel chip i'm going to try this week as i can't seem to figure out what the problem is.

wdoekes commented 2 years ago

I have tried that module as well, same problem.

Excellent. That means I did not necessarily mess up the merge into this codebase. In this case I can be of no help.

I'll accept suggested fixes or useful debug logs though :)

epipenau commented 2 years ago

i changed the asterisk run as user to root, now when receiving an incoming call I get this:

    -- Executing [s@dongle-incoming:1] Answer("Dongle/dongle0-0400000000", "") in new stack
[Nov  3 11:56:20] ERROR[3876]: at_response.c:287 log_cmd_response_error: [dongle0] AT^DDSETEX (setup voice) failed
    -- Executing [s@dongle-incoming:2] Echo("Dongle/dongle0-0400000000", "") in new stack
[Nov  3 11:56:39] ERROR[3876]: at_response.c:1937 at_response: [dongle0] Receive NO CARRIER

I was not receving the AT^DDSETEX problem previously. Maybe this sheds some light on the subject?

Voice is definately on on this device.

wdoekes commented 2 years ago

One: if the dongle had replied positively to AT+QPCMV?, chan_dongle would not send AT^DDSETEX, but AT+QPCMV=1,0.

Two: I'm not sure Quectel wants anyone to use their stuff. I found this URL behind a paywall/loginwall: https://www.quectel.com/download/quectel_gsm_audio_player_application_note_v3-2

PRs are welcome. But I cannot be of assistance without code snippets that do work.

Here are some more people complaining that it doesn't work: https://github.com/bg111/asterisk-chan-dongle/issues/276 and https://forum.banana-pi.org/t/failed-to-cross-compile-asterisk-voice-channel-for-openwrt-solved/12558 and https://forums.quectel.com/t/ec25-at-qpcmd-not-supported/8196/2 . Here's a PDF http://www.szchonghan.com/English/upload/files/2017/8/Quectel_EC20%20R2.0_AT_Commands_Manual_V1.0.pdf which sports no reference to QPCMV at all, or this one https://sixfab.com/wp-content/uploads/2018/09/Quectel_EC25EC21_AT_Commands_Manual_V1.2.pdf with the same issue.

IchthysMaranathaCopy commented 2 years ago

Chan_quectel does not work and I've been modifying it and have got it to work for EC25. With few other modifications, it is also working with Sim7600 but that's not so stable. Many changes are required as the modified code was still using Huawei specific URC for triggering many events. Will be publishing the code soon. And then it could be integrated with chan_dongle and also improved upon by a competent programmer like wdoekes.

epipenau commented 2 years ago

Yeah nice. I did a bit of research and found that most the AT commands were incorrect and not specific. This is great to hear that you have done this manojmat29, I can’t wait!

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: 09 November 2021 22:02 To: @.> Cc: Michael @.>; @.> Subject: Re: [wdoekes/asterisk-chan-dongle] Quectel EC25 (#149)

Chan_quectel does not work and I've been modifying it and have got it to work for EC25. With few other modifications, it is also working with Sim7600 but that's not so stable. Many changes are required as the modified code was still using Huawei specific URC for triggering many events. Will be publishing the code soon. And then it could be integrated with chan_dongle and also improved upon by a competent programmer like wdoekes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/wdoekes/asterisk-chan-dongle/issues/149#issuecomment-964041308, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPSM3SI2ITAFYERGIVQHH3ULD5TBANCNFSM5GDBR4ZQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

IchthysMaranathaCopy commented 2 years ago

Writeup and working code for Quectel here https://github.com/IchthysMaranatha/asterisk-chan-quectel Simcom might take a few more days

epipenau commented 2 years ago

Madness. I’ll check it out today and let you know how it goes! I have the PinePhone here and some WBT routers both with the EC25.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: 12 November 2021 03:00 To: @.> Cc: Michael @.>; @.> Subject: Re: [wdoekes/asterisk-chan-dongle] Quectel EC25 (#149)

Writeup and working code for Quectel here https://github.com/IchthysMaranatha/asterisk-chan-quectel Simcom might take a few more days

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/wdoekes/asterisk-chan-dongle/issues/149#issuecomment-966420334, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPSM3VXIDEIJM7A5YX4MCDULPSDJANCNFSM5GDBR4ZQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

IchthysMaranatha commented 2 years ago

Have added simcom support

wdoekes commented 2 years ago

I did check this fork, but it does not seem to take merging the code back into chan_dongle into account.

If someone files a PR to merge code, I'll take a look. Closing for now.

IchthysMaranatha commented 2 years ago

@epipenau If you have not got it working on pinephone as yet, this might be of help https://www.jdieter.net/posts/2022/02/07/pinephone-call-quality/