Asterisk and WhatsApp Calling

Hi,
I’m trying to connect WhatsApp with FreePBX using the new Calling API. Everything is working fine — audio flows in both directions, calls can be sent and received — but there’s a problem: the call hangs up after 30 to 40 seconds.

I’ve tried everything: all necessary ports are open, the certificates are properly signed, and NAT settings are correctly configured.

Any ideas on what might be causing the issue?

Thanks!

Interesting, can you provide more information?

If the time isn’t exactly 32 seconds, one would have to guess without detailed logging, and even with an exact 32 seconds, one really needs the logs. As I haven’t heard of this API before, I don’t know whether this is just SIP to Asterisk, in which case one wants the “pjsip set logger on” output (or equivalent legacy driver output) from the Asterisk full log, plus the other verbose level 5 output.

any details information shared,that would be appreciated

A GitHub page with no source code, and not updated in two years, relating to a service that I thought WhatsApp doesn’t officially support!

Please provide a link to current API documentation from Meta, and to the source code of the gateway.

1 Like

On advanced settings is the Asterisk Bind address 127.0.0.1? I was having the same problem because whatsapp uses webrtc and when i set it to :: it seems traffic was able to flow properly, but now im having problems when sending outbound calls do you think you could help me? im stuck with the same “Proxy auth uri does not match SIP “to” uri” error for days now

Sure. The calls in working fine!.
Now have the same problem, with the out calls, my asterisk not register the meta trunk.

Your meta trunk register?
In dont found documentation about the outbound_proxy and use wa.meta.vc:8191 but dont found

@casoft what did you use for codec? i am having problem of no sound and call hang up after 20 seconds automatically.

my trunk looks like this and the inbound call works correctly




1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.