[asterisk-commits] pcadach: branch pcadach/chan_h323-live r43093 -
/team/pcadach/chan_h323-live/...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Sep 17 09:54:44 MST 2006
Author: pcadach
Date: Sun Sep 17 11:54:43 2006
New Revision: 43093
URL: http://svn.digium.com/view/asterisk?rev=43093&view=rev
Log:
Provide cause codes when channel creation fails
Modified:
team/pcadach/chan_h323-live/channels/chan_h323.c
Modified: team/pcadach/chan_h323-live/channels/chan_h323.c
URL: http://svn.digium.com/view/asterisk/team/pcadach/chan_h323-live/channels/chan_h323.c?rev=43093&r1=43092&r2=43093&view=diff
==============================================================================
--- team/pcadach/chan_h323-live/channels/chan_h323.c (original)
+++ team/pcadach/chan_h323-live/channels/chan_h323.c Sun Sep 17 11:54:43 2006
@@ -1698,6 +1698,8 @@
if (!format) {
ast_log(LOG_NOTICE, "Asked to get a channel of unsupported format '%d'\n", format);
oh323_destroy(pvt);
+ if (cause)
+ *cause = AST_CAUSE_INCOMPATIBLE_DESTINATION;
return NULL;
}
strncpy(tmp, dest, sizeof(tmp) - 1);
@@ -1725,6 +1727,8 @@
if (gatekeeper_disable) {
if (create_addr(pvt, host)) {
oh323_destroy(pvt);
+ if (cause)
+ *cause = AST_CAUSE_DESTINATION_OUT_OF_ORDER;
return NULL;
}
}
@@ -1758,6 +1762,8 @@
ast_mutex_unlock(&pvt->lock);
if (!tmpc) {
oh323_destroy(pvt);
+ if (cause)
+ *cause = AST_CAUSE_NORMAL_TEMPORARY_FAILURE;
}
ast_update_use_count();
restart_monitor();
More information about the asterisk-commits
mailing list