Open Latifly opened 6 months ago
in the voip example in v2.4 release. https://github.com/espressif/esp-adf/tree/release/v2.4/examples/advanced_examples/voip in the sip event handler, there is event->type and event->data which contain type of event and the data. for example, when there is a SIP_EVENT_RINGING the event->data will contain the caller id.
event->type
event->data
SIP_EVENT_RINGING
in the current voip master branch. https://github.com/espressif/esp-adf/tree/master/examples/protocols/voip the sip event handler only contain the event type without the data. is there any way to get the caller id when there is ESP_RTC_EVENT_INCOMING event like the version 2.4 release?
ESP_RTC_EVENT_INCOMING
Hi @Latifly ,
You can get caller id though esp_rtc_get_peer API.
br.
in the voip example in v2.4 release. https://github.com/espressif/esp-adf/tree/release/v2.4/examples/advanced_examples/voip in the sip event handler, there is
event->type
andevent->data
which contain type of event and the data. for example, when there is aSIP_EVENT_RINGING
theevent->data
will contain the caller id.in the current voip master branch. https://github.com/espressif/esp-adf/tree/master/examples/protocols/voip the sip event handler only contain the event type without the data. is there any way to get the caller id when there is
ESP_RTC_EVENT_INCOMING
event like the version 2.4 release?