Revision
16634
Author
mrene
Date
2010-02-13 12:33:29 -0600 (Sat, 13 Feb 2010)

Log Message

MODOPAL-17

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp (16633 => 16634)


--- freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp	2010-02-13 16:54:24 UTC (rev 16633)
+++ freeswitch/trunk/src/mod/endpoints/mod_opal/mod_opal.cpp	2010-02-13 18:33:29 UTC (rev 16634)
@@ -40,7 +40,7 @@
 
 static switch_call_cause_t create_outgoing_channel(switch_core_session_t *session, switch_event_t *var_event,
                                                    switch_caller_profile_t *outbound_profile, switch_core_session_t **new_session,
-                                                   switch_memory_pool_t **pool, switch_originate_flag_t flags);
+                                                   switch_memory_pool_t **pool, switch_originate_flag_t flags, switch_call_cause_t *cancel_cause);
 
 
 static FSProcess *opal_process = NULL;
@@ -138,7 +138,7 @@
 static switch_call_cause_t create_outgoing_channel(switch_core_session_t *session,
                                                    switch_event_t *var_event,
                                                    switch_caller_profile_t *outbound_profile,
-                                                   switch_core_session_t **new_session, switch_memory_pool_t **pool, switch_originate_flag_t flags)
+                                                   switch_core_session_t **new_session, switch_memory_pool_t **pool, switch_originate_flag_t flags, switch_call_cause_t *cancel_cause)
 {
     if (opal_process == NULL) {
         return SWITCH_CAUSE_CRASH;
@@ -250,7 +250,7 @@
                         line = atoi(bufPtr);
                         while (bufEndPtr && isspace(*(++bufEndPtr)));
                         bufPtr = bufEndPtr;
-                        if (bufPtr && (e = strchr(bufPtr, ' ')) || (e = strchr(bufPtr, '\t'))) {
+                        if (bufPtr && ((e = strchr(bufPtr, ' ')) || (e = strchr(bufPtr, '\t')))) {
                             func = bufPtr;
                             bufPtr = e;
                             *bufPtr++ = '\0';