[asterisk-commits] branch crichter/0.3.0 r10872 - /team/crichter/0.3.0/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Feb 23 10:33:04 MST 2006


Author: crichter
Date: Thu Feb 23 11:33:02 2006
New Revision: 10872

URL: http://svn.digium.com/view/asterisk?rev=10872&view=rev
Log:
we can set the zap channel in hdlc mode in zt_call, better then waiting for a SETUP_ACKNOWLEDGE, which musntn't come everytime

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

Modified: team/crichter/0.3.0/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/chan_zap.c?rev=10872&r1=10871&r2=10872&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_zap.c (original)
+++ team/crichter/0.3.0/channels/chan_zap.c Thu Feb 23 11:33:02 2006
@@ -2149,6 +2149,12 @@
 		pri_sr_free(sr);
 		ast_setstate(ast, AST_STATE_DIALING);
 		pri_rel(p->pri);
+
+
+		if (p->digital && p->hdlc) {
+			zap_set_hdlc_exec(ast,NULL);
+		}
+
 	}
 #endif		
 	ast_mutex_unlock(&p->lock);
@@ -8429,11 +8435,7 @@
 								}
 							}
 						}
-						
-						if (pri->pvts[chanpos]->digital && pri->pvts[chanpos]->hdlc) {
-							
-							zap_set_hdlc_exec(pri->pvts[chanpos]->owner,NULL);
-						} 
+					 
 						ast_mutex_unlock(&pri->pvts[chanpos]->lock);
 					}
 				}
@@ -9316,6 +9318,8 @@
  	int x=1;
  	int bs=HDLC_READ_SIZE; /* how large can hdlc frames be on the bchannel ? */
  	
+ 	ast_log(LOG_NOTICE, "ZapSetHDLC called\n");
+
  	if (!p) {
  		ast_log(LOG_WARNING, "Unable to find technology private\n");
  		return -1;



More information about the asterisk-commits mailing list