[Asterisk-cvs] asterisk/channels chan_zap.c,1.94,1.95

markster at lists.digium.com markster at lists.digium.com
Thu Sep 4 13:54:26 CDT 2003


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv15749/channels

Modified Files:
	chan_zap.c 
Log Message:
Add Zap dnid support


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -d -r1.94 -r1.95
*** chan_zap.c	26 Aug 2003 02:38:24 -0000	1.94
--- chan_zap.c	4 Sep 2003 18:55:35 -0000	1.95
***************
*** 366,369 ****
--- 366,370 ----
  	char callwaitcid[AST_MAX_EXTENSION];
  	char rdnis[AST_MAX_EXTENSION];
+ 	char dnid[AST_MAX_EXTENSION];
  	unsigned int group;
  	int law;
***************
*** 3732,3735 ****
--- 3733,3738 ----
  		if (strlen(i->rdnis))
  			tmp->rdnis = strdup(i->rdnis);
+ 		if (strlen(i->dnid))
+ 			tmp->dnid = strdup(i->dnid);
  		if (strlen(i->callerid)) {
  			tmp->callerid = strdup(i->callerid);
***************
*** 5798,5801 ****
--- 5801,5805 ----
  						else
  							strncat(pri->pvt[chan]->exten, e->ring.callednum, sizeof(pri->pvt[chan]->exten)-1);
+ 						strncpy(pri->pvt[chan]->dnid, e->ring.callednum, sizeof(pri->pvt[chan]->dnid));
  					} 
  #if 0




More information about the svn-commits mailing list