mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-01 14:44:02 +00:00
fix of MODENDP-22
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5570 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
36509dfeb4
commit
e34d546285
@ -1103,7 +1103,7 @@ static switch_call_cause_t wanpipe_outgoing_channel(switch_core_session_t *sessi
|
|||||||
if (num && *num > 47 && *num < 58) {
|
if (num && *num > 47 && *num < 58) {
|
||||||
span = atoi(num);
|
span = atoi(num);
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invlid Syntax\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Syntax\n");
|
||||||
switch_core_session_destroy(new_session);
|
switch_core_session_destroy(new_session);
|
||||||
cause = SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
|
cause = SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
|
||||||
goto error;
|
goto error;
|
||||||
@ -1119,14 +1119,14 @@ static switch_call_cause_t wanpipe_outgoing_channel(switch_core_session_t *sessi
|
|||||||
} else if (num && *num > 47 && *num < 58) {
|
} else if (num && *num > 47 && *num < 58) {
|
||||||
callno = atoi(num);
|
callno = atoi(num);
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invlid Syntax\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Syntax\n");
|
||||||
switch_core_session_destroy(new_session);
|
switch_core_session_destroy(new_session);
|
||||||
cause = SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
|
cause = SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
caller_profile->destination_number = p;
|
caller_profile->destination_number = p;
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invlid Syntax\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid Syntax\n");
|
||||||
switch_core_session_destroy(new_session);
|
switch_core_session_destroy(new_session);
|
||||||
cause = SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
|
cause = SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user