Page 1 of 1

ESP32 adf VOIP not making a call

Posted: Mon Dec 16, 2019 10:30 am
by Patsjemoe
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

Re: ESP32 adf VOIP not making a call

Posted: Mon Dec 16, 2019 12:45 pm
by username
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.

Re: ESP32 adf VOIP not making a call

Posted: Fri Dec 27, 2019 5:21 pm
by Patsjemoe
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

Re: ESP32 adf VOIP not making a call

Posted: Fri Dec 27, 2019 8:18 pm
by username
I too have had issues. But since its not open source there is nothing we can do about it.

Re: ESP32 adf VOIP not making a call

Posted: Fri Jan 24, 2020 6:44 am
by getvobot
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.