mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-14 04:54:49 +00:00
dont put params in chan names on sofia urls
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13841 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5f384edc87
commit
4a24f3a8f2
@ -474,6 +474,7 @@ void sofia_glue_attach_private(switch_core_session_t *session, sofia_profile_t *
|
|||||||
{
|
{
|
||||||
char name[256];
|
char name[256];
|
||||||
unsigned int x;
|
unsigned int x;
|
||||||
|
char *p;
|
||||||
|
|
||||||
switch_assert(session != NULL);
|
switch_assert(session != NULL);
|
||||||
switch_assert(profile != NULL);
|
switch_assert(profile != NULL);
|
||||||
@ -515,6 +516,9 @@ void sofia_glue_attach_private(switch_core_session_t *session, sofia_profile_t *
|
|||||||
switch_core_session_set_private(session, tech_pvt);
|
switch_core_session_set_private(session, tech_pvt);
|
||||||
|
|
||||||
switch_snprintf(name, sizeof(name), "sofia/%s/%s", profile->name, channame);
|
switch_snprintf(name, sizeof(name), "sofia/%s/%s", profile->name, channame);
|
||||||
|
if ((p = strchr(name, ';'))) {
|
||||||
|
*p = '\0';
|
||||||
|
}
|
||||||
switch_channel_set_name(tech_pvt->channel, name);
|
switch_channel_set_name(tech_pvt->channel, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user