[Freeswitch-svn] [commit] r8184 - in freeswitch/trunk/src: . mod/endpoints/mod_sofia
Author: anthm Date: Wed Apr 23 17:14:41 2008 New Revision: 8184 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c freeswitch/trunk/src/switch_console.c Log: update Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c Wed Apr 23 17:14:41 2008 @@ -344,7 +344,7 @@ sql = switch_mprintf("insert into sip_authentication (nonce, expires) values('%q', %ld)", uuid_str, switch_timestamp(NULL) + profile->nonce_ttl); switch_assert(sql != NULL); - sofia_glue_actually_execute_sql(profile, SWITCH_FALSE, sql, NULL); + sofia_glue_actually_execute_sql(profile, SWITCH_FALSE, sql, profile->ireg_mutex); switch_safe_free(sql); //sofia_glue_execute_sql(profile, &sql, SWITCH_TRUE); Modified: freeswitch/trunk/src/switch_console.c ============================================================================== --- freeswitch/trunk/src/switch_console.c (original) +++ freeswitch/trunk/src/switch_console.c Wed Apr 23 17:14:41 2008 @@ -169,7 +169,7 @@ char *exp = NULL; switch_core_db_t *db = switch_core_db_handle(); - sql = switch_mprintf("select command from aliases where alias='%s'", cmd); + sql = switch_mprintf("select command from aliases where alias='%q' or alias='%q %q'", cmd, cmd, arg); switch_core_db_exec(db, sql, alias_callback, &r, &errmsg); if (errmsg) {
participants (1)
-
Freeswitch SVN