mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-23 19:45:35 +00:00
doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3375 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1fc5fd0e14
commit
dd824bbf81
@ -1486,6 +1486,7 @@ static switch_status_t channel_outgoing_channel(switch_core_session_t *session,
|
|||||||
*dnis++ = '\0';
|
*dnis++ = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((mdl_profile = switch_core_hash_find(globals.profile_hash, profile_name))) {
|
||||||
if ((mdl_profile->user_flags & LDL_FLAG_COMPONENT)) {
|
if ((mdl_profile->user_flags & LDL_FLAG_COMPONENT)) {
|
||||||
if ((p = strchr(profile_name, '@'))) {
|
if ((p = strchr(profile_name, '@'))) {
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
@ -1499,14 +1500,10 @@ static switch_status_t channel_outgoing_channel(switch_core_session_t *session,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((mdl_profile = switch_core_hash_find(globals.profile_hash, profile_name))) {
|
if (strchr(outbound_profile->caller_id_number, '@')) {
|
||||||
|
|
||||||
if ((mdl_profile->user_flags & LDL_FLAG_COMPONENT) && strchr(outbound_profile->caller_id_number, '@')) {
|
|
||||||
snprintf(ubuf, sizeof(ubuf), "%s/talk", outbound_profile->caller_id_number);
|
snprintf(ubuf, sizeof(ubuf), "%s/talk", outbound_profile->caller_id_number);
|
||||||
user = ubuf;
|
user = ubuf;
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (!user) {
|
|
||||||
user = mdl_profile->login;
|
user = mdl_profile->login;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user