[Freeswitch-svn] [commit] r7036 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
mikej at freeswitch.org
Mon Dec 31 10:16:23 EST 2007
Author: mikej
Date: Mon Dec 31 10:16:22 2007
New Revision: 7036
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
Log:
add chanvars for uri_params (MODENDP-67)
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Mon Dec 31 10:16:22 2007
@@ -2123,9 +2123,9 @@
}
-#define url_set_chanvars(session, url, varprefix) _url_set_chanvars(session, url, #varprefix "_user", #varprefix "_host", #varprefix "_port", #varprefix "_uri")
+#define url_set_chanvars(session, url, varprefix) _url_set_chanvars(session, url, #varprefix "_user", #varprefix "_host", #varprefix "_port", #varprefix "_uri", #varprefix "_params")
const char *_url_set_chanvars(switch_core_session_t *session, url_t *url, const char *user_var,
- const char *host_var, const char *port_var, const char *uri_var)
+ const char *host_var, const char *port_var, const char *uri_var, const char *params_var)
{
const char *user = NULL, *host = NULL, *port = NULL;
char *uri = NULL;
@@ -2135,6 +2135,9 @@
user = url->url_user;
host = url->url_host;
port = url->url_port;
+ if(!switch_strlen_zero(url->url_params)) {
+ switch_channel_set_variable(channel, params_var, url->url_params);
+ }
}
if (switch_strlen_zero(user)) {
More information about the Freeswitch-svn
mailing list