[Asterisk-cvs] asterisk README.variables,1.5,1.6 pbx.c,1.44,1.45

markster at lists.digium.com markster at lists.digium.com
Thu Sep 4 17:44:57 CDT 2003


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

Modified Files:
	README.variables pbx.c 
Log Message:
Add ${DNIS}


Index: README.variables
===================================================================
RCS file: /usr/cvsroot/asterisk/README.variables,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** README.variables	30 May 2003 04:41:18 -0000	1.5
--- README.variables	4 Sep 2003 22:46:06 -0000	1.6
***************
*** 41,44 ****
--- 41,46 ----
  ${DATETIME}	Current date time in the format: YYYY-MM-DD_HH:MM:SS
  ${UNIQUEID}	Current call unique identifier
+ ${DNID}         Dialed Number Identifier
+ ${RDNIS}        Redirected Dial Number ID Service
  
  There are two reference modes - reference by value and reference by name. 

Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** pbx.c	2 Sep 2003 00:33:42 -0000	1.44
--- pbx.c	4 Sep 2003 22:46:06 -0000	1.45
***************
*** 798,801 ****
--- 798,807 ----
  		} else 
  			*ret = NULL;
+ 	} else if (c && !strcmp(var, "DNID")) {
+ 		if (c->dnid) {
+ 			strncpy(workspace, c->dnid, workspacelen - 1);
+ 			*ret = workspace;
+ 		} else
+ 			*ret = NULL;
  	} else if (c && !strcmp(var, "HINT")) {
  		if (!ast_get_hint(workspace, workspacelen - 1, c, c->context, c->exten))




More information about the svn-commits mailing list