mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 14:58:34 +00:00
change modules.conf to be a local-only file that is auto-generated
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@609 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
cb463b4e52
commit
d1f821478b
6 files changed
+39
-40
No files matched your search
@@ -862,7 +862,7 @@ static void *pri_thread_run(switch_thread *thread, void *obj)
|
||||
{
|
||||
struct sangoma_pri *spri = obj;
|
||||
struct channel_map chanmap;
|
||||
|
||||
switch_event *s_event;
|
||||
SANGOMA_MAP_PRI_EVENT((*spri), SANGOMA_PRI_EVENT_ANY, on_anything);
|
||||
SANGOMA_MAP_PRI_EVENT((*spri), SANGOMA_PRI_EVENT_RING, on_ring);
|
||||
SANGOMA_MAP_PRI_EVENT((*spri), SANGOMA_PRI_EVENT_RINGING, on_ringing);
|
||||
@@ -874,6 +874,12 @@ static void *pri_thread_run(switch_thread *thread, void *obj)
|
||||
|
||||
spri->on_loop = check_flags;
|
||||
spri->private = &chanmap;
|
||||
|
||||
if (switch_event_create(&s_event, SWITCH_EVENT_PUBLISH) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_event_add_header(s_event, SWITCH_STACK_BOTTOM, "service", "_pri._tcp");
|
||||
switch_event_fire(&s_event);
|
||||
}
|
||||
|
||||
sangoma_run_pri(spri);
|
||||
|
||||
free(spri);
|
||||
|
||||
Reference in new issue
Block a user