mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-02 19:40:08 +00:00
FS-7955: [mod_sofia] fix crash caused by invalid contact when using event to send a notify message
This commit is contained in:
parent
30ffe287da
commit
bfa3128724
@ -4992,6 +4992,11 @@ static void general_event_handler(switch_event_t *event)
|
||||
route_uri = sofia_glue_strip_uri(dst->route_uri);
|
||||
}
|
||||
|
||||
if (zstr(dst->contact)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid contact uri [%s]\n", switch_str_nil(dst->contact));
|
||||
return;
|
||||
}
|
||||
|
||||
nh = nua_handle(profile->nua,
|
||||
NULL,
|
||||
NUTAG_URL(dst->contact),
|
||||
|
Loading…
x
Reference in New Issue
Block a user