MODENDP-284

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16483 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2010-01-23 18:43:38 +00:00
parent 7a0bc97b5c
commit 22592cc0e9
3 changed files with 12 additions and 0 deletions
+5
View File
@@ -2355,7 +2355,12 @@ switch_status_t sofia_reg_add_gateway(char *key, sofia_gateway_t *gateway)
switch_mutex_unlock(mod_sofia_globals.hash_mutex);
if (status == SWITCH_STATUS_SUCCESS) {
switch_event_t *s_event;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Added gateway '%s' to profile '%s'\n", gateway->name, gateway->profile->name);
if (switch_event_create_subclass(&s_event, SWITCH_EVENT_CUSTOM, MY_EVENT_GATEWAY_ADD) == SWITCH_STATUS_SUCCESS) {
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "Gateway", gateway->name);
switch_event_fire(&s_event);
}
}
return status;