mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-01 02:52:32 +00:00
dont send blank update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15366 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
92e5245f0f
commit
d5f5b6db6f
@ -479,7 +479,11 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
|
||||
number = tmp;
|
||||
}
|
||||
|
||||
if (!name) name = (char *) number;
|
||||
if (zstr(name)) name = (char *) number;
|
||||
|
||||
if (zstr(name) || zstr(number)) {
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (switch_event_create(&event, SWITCH_EVENT_CALL_UPDATE) == SWITCH_STATUS_SUCCESS) {
|
||||
const char *uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE);
|
||||
@ -503,6 +507,7 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
|
||||
sofia_send_callee_id(session, NULL, NULL);
|
||||
}
|
||||
|
||||
end:
|
||||
switch_safe_free(dup);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user