[Asterisk-cvs] asterisk/channels chan_iax2.c,1.101,1.102

markster at lists.digium.com markster at lists.digium.com
Thu Mar 4 18:52:47 CST 2004


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

Modified Files:
	chan_iax2.c 
Log Message:
Set the context properly for a given peer


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- chan_iax2.c	4 Mar 2004 01:11:25 -0000	1.101
+++ chan_iax2.c	4 Mar 2004 23:43:58 -0000	1.102
@@ -2122,6 +2122,8 @@
 	if (!secret && strlen(storedsecret))
 		secret = storedsecret;
 	ast_mutex_lock(&iaxsl[callno]);
+	if (strlen(c->context))
+		strncpy(iaxs[callno]->context, c->context, sizeof(iaxs[callno]->context));
 	if (secret) {
 		if (secret[0] == '[') {
 			/* This is an RSA key, not a normal secret */




More information about the svn-commits mailing list