ESP32 adf VOIP not making a call

Patsjemoe
Posts: 40
Joined: Wed Jul 17, 2019 11:22 am

ESP32 adf VOIP not making a call

Postby Patsjemoe » Mon Dec 16, 2019 10:30 am

Hi,
I succeeded in registering the ESP32 to Asterisk, and did this also with a softphone.
But I cannot find a way to make now a call, it is only re-registering.
Is the example for the VOIP really making a call ? If so, how is it done ? Which button is being used to start a call ? (then I can look into the SW to see what is done).
regards
Ludo

username
Posts: 536
Joined: Thu May 03, 2018 1:18 pm

Re: ESP32 adf VOIP not making a call

Postby username » Mon Dec 16, 2019 12:45 pm

Yes, it really does work. (needs some work though, as it does not handle some things properly.)
I tried it once and made & received a call. Sounded great, but there were some events that it did not handle properly. The trouble is that they have not released the source for it, so fixing anything is a showstopper.

Take a look at input_key_service_cb, these are the controls for it.

Patsjemoe
Posts: 40
Joined: Wed Jul 17, 2019 11:22 am

Re: ESP32 adf VOIP not making a call

Postby Patsjemoe » Fri Dec 27, 2019 5:21 pm

Hi,
Have Asterisk working with PC-microsip and Android.
Am now doing the same with ESP32, and start to see results.
Problem is that the VOIP_APP does not properly handle registration, as I can see Asterisk to register the ESP, but in the program, the
sip_state_t sip_state = esp_sip_get_state(sip); gets to 2 but does not switch to 4.
It also never gets to "SIP_EVENT_REGISTERED")
Sometimes, I get to the esp_sip_uac_invite(sip, and can connect with my android without voice.
When I check , sip_state is not going to the right registration level, so the expression
if (sip_state < SIP_STATE_REGISTERED) {
return ESP_OK;
always returns.
Where in the program is the Asterisk registration ok taken and the SIP state adapted ?
looking forward to feedback
regards

username
Posts: 536
Joined: Thu May 03, 2018 1:18 pm

Re: ESP32 adf VOIP not making a call

Postby username » Fri Dec 27, 2019 8:18 pm

I too have had issues. But since its not open source there is nothing we can do about it.

getvobot
Posts: 3
Joined: Sun Dec 08, 2019 7:45 am

Re: ESP32 adf VOIP not making a call

Postby getvobot » Fri Jan 24, 2020 6:44 am

same problem here.
INVITE initiated by ESP will run however there is no sound. auto hangup after 30s. There is no ACK sent to SIP server.
sometimes, if INVITE initiated by App, answering on ESP is OK.

Who is online

Users browsing this forum: No registered users and 71 guests