espressif / esp-adf

Espressif Audio Development Framework
Other
1.55k stars 685 forks source link

SIP User-Agent (AUD-4502) #977

Closed sylvainleris closed 1 year ago

sylvainleris commented 1 year ago

It will be great if we could update User-Agent in SIP headers. It could be done like this :

esp_rtc_config_t sip_service_config = {
    .uri = uri,
    .user_agent = "ESP32 SIP/2.0",
    .ctx = av_stream,
    .local_addr = ip4addr_ntoa(&ip),
    .acodec_type = RTC_ACODEC_G711A,
    .data_cb = &data_cb,
    .event_handler = _esp_sip_event_handler,
};
ahhfzhang commented 1 year ago

@sylvainleris

Thanks for your report, we will add this feature.