[Asterisk-Users] Re: SIP REGISTER -- Asterisk non-compliant or is it the provider?

Tom Ivar Helbekkmo tih at eunetnorge.no
Sun Nov 7 05:19:46 MST 2004


Benjamin on Asterisk Mailing Lists <benjk.on.asterisk.ml at gmail.com> writes:

> ... and I am trying to make sense of this so as to be confident to
> apply the change to the earlier version.

You found the right one.  Here's what was posted to the CVS list:

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

Modified Files:
	chan_sip.c 
Log Message:
Setup fromuser properly (bug #2802)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.549
retrieving revision 1.550
diff -u -d -r1.549 -r1.550
--- chan_sip.c	6 Nov 2004 23:58:46 -0000	1.549
+++ chan_sip.c	7 Nov 2004 00:19:42 -0000	1.550
@@ -4055,6 +4055,7 @@
 			if (!ast_strlen_zero(r->username)) {
 				strncpy(p->peername, r->username, sizeof(p->peername)-1);
 				strncpy(p->authname, r->username, sizeof(p->authname)-1);
+				strncpy(p->fromuser, r->username, sizeof(p->fromuser)-1);
 			}
 		}
 		if (!ast_strlen_zero(r->username))

-tih
-- 
Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway Hosting
www.eunet.no  T +47-22092958 M +47-93013940 F +47-22092901 FWD 484145



More information about the asterisk-users mailing list