mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-26 03:36:40 +00:00
FS-5545 try this and repeat the trace if it doesn't fix it
This commit is contained in:
parent
c98b01a205
commit
a799396239
@ -1002,6 +1002,7 @@ static switch_bool_t test_profile(char *lcr_profile)
|
|||||||
callback_t routes = { 0 };
|
callback_t routes = { 0 };
|
||||||
switch_memory_pool_t *pool = NULL;
|
switch_memory_pool_t *pool = NULL;
|
||||||
switch_event_t *event = NULL;
|
switch_event_t *event = NULL;
|
||||||
|
switch_bool_t r;
|
||||||
|
|
||||||
switch_core_new_memory_pool(&pool);
|
switch_core_new_memory_pool(&pool);
|
||||||
switch_event_create(&event, SWITCH_EVENT_MESSAGE);
|
switch_event_create(&event, SWITCH_EVENT_MESSAGE);
|
||||||
@ -1016,8 +1017,11 @@ static switch_bool_t test_profile(char *lcr_profile)
|
|||||||
routes.lookup_number = "15555551212";
|
routes.lookup_number = "15555551212";
|
||||||
routes.cid = "18005551212";
|
routes.cid = "18005551212";
|
||||||
lcr_destroy(routes.head);
|
lcr_destroy(routes.head);
|
||||||
return (lcr_do_lookup(&routes) == SWITCH_STATUS_SUCCESS) ?
|
|
||||||
SWITCH_TRUE : SWITCH_FALSE;
|
r = (lcr_do_lookup(&routes) == SWITCH_STATUS_SUCCESS) ? SWITCH_TRUE : SWITCH_FALSE;
|
||||||
|
switch_event_destroy(&event);
|
||||||
|
|
||||||
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
static switch_status_t lcr_load_config()
|
static switch_status_t lcr_load_config()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user