[asterisk-commits] branch crichter/0.3.0 r18798 - /team/crichter/0.3.0/channels/chan_misdn.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Apr 10 06:25:00 MST 2006


Author: crichter
Date: Mon Apr 10 08:24:57 2006
New Revision: 18798

URL: http://svn.digium.com/view/asterisk?rev=18798&view=rev
Log:
we send nearly everytime a RELEASE, only if we for sure know, that it's a TE and we did create the call we don't to hear the Inband Info

Modified:
    team/crichter/0.3.0/channels/chan_misdn.c

Modified: team/crichter/0.3.0/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/chan_misdn.c?rev=18798&r1=18797&r2=18798&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn.c Mon Apr 10 08:24:57 2006
@@ -3552,7 +3552,7 @@
 		
 		send_cause2ast(ch->ast,bc);
 
-		if (misdn_inband_avail(bc) && ch->state != MISDN_CONNECTED) {
+		if ( ch->orginator==ORG_AST && !bc->nt && misdn_inband_avail(bc) && ch->state != MISDN_CONNECTED) {
 			/* If there's inband information available (e.g. a
 			   recorded message saying what was wrong with the
 			   dialled number, or perhaps even giving an
@@ -3584,7 +3584,6 @@
 		*/
 		
 		misdn_lib_send_event(bc,EVENT_RELEASE);
-		
 	}
 	break;
 	



More information about the asterisk-commits mailing list