espressif / esp-adf

Espressif Audio Development Framework
Other
1.49k stars 667 forks source link

Getting caller id in VoIP Example (AUD-5128) #1131

Open Latifly opened 6 months ago

Latifly commented 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.

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?

ahhfzhang commented 5 months ago

Hi @Latifly ,

You can get caller id though esp_rtc_get_peer API.

br.