[asterisk-commits] branch 1.2 r30293 - /branches/1.2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 25 10:18:01 MST 2006


Author: kpfleming
Date: Thu May 25 12:18:01 2006
New Revision: 30293

URL: http://svn.digium.com/view/asterisk?rev=30293&view=rev
Log:
allow SIPCHANINFO(peername) to work for calls from users as well (issue #7215)

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=30293&r1=30292&r2=30293&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Thu May 25 12:18:01 2006
@@ -7177,6 +7177,7 @@
 			}
 			if (!ast_strlen_zero(user->cid_name) && !ast_strlen_zero(p->cid_num)) 
 				ast_copy_string(p->cid_name, user->cid_name, sizeof(p->cid_name));
+			ast_copy_string(p->peername, user->name, sizeof(p->peername));
 			ast_copy_string(p->username, user->name, sizeof(p->username));
 			ast_copy_string(p->peersecret, user->secret, sizeof(p->peersecret));
 			ast_copy_string(p->subscribecontext, user->subscribecontext, sizeof(p->subscribecontext));



More information about the asterisk-commits mailing list