[asterisk-commits] rizzo: branch rizzo/astobj2 r47964 - /team/rizzo/astobj2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Nov 23 06:11:16 MST 2006


Author: rizzo
Date: Thu Nov 23 07:11:15 2006
New Revision: 47964

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47964
Log:
remove unused field (useragent[]) from struct sip_user,
and move the corresponding one in the sip_peer_only section
for a sip_peer.

Trunk candidate.


Modified:
    team/rizzo/astobj2/channels/chan_sip.c

Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=47964&r1=47963&r2=47964
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Thu Nov 23 07:11:15 2006
@@ -1106,7 +1106,6 @@
 	char language[MAX_LANGUAGE];	/*!< Default language for this user */
 	char mohinterpret[MAX_MUSICCLASS];/*!< Music on Hold class */
 	char mohsuggest[MAX_MUSICCLASS];/*!< Music on Hold class */
-	char useragent[256];		/*!< User agent in SIP request */
 	struct ast_codec_pref prefs;	/*!< codec prefs */
 	ast_group_t callgroup;		/*!< Call group */
 	ast_group_t pickupgroup;	/*!< Pickup Group */
@@ -1140,7 +1139,6 @@
 	char language[MAX_LANGUAGE];	/*!<  Default language for prompts */
 	char mohinterpret[MAX_MUSICCLASS];/*!<  Music on Hold class */
 	char mohsuggest[MAX_MUSICCLASS];/*!<  Music on Hold class */
-	char useragent[256];		/*!<  User agent in SIP request (saved from registration) */
 	struct ast_codec_pref prefs;	/*!<  codec prefs */
 	ast_group_t callgroup;		/*!<  Call group */
 	ast_group_t pickupgroup;	/*!<  Pickup group */
@@ -1158,6 +1156,7 @@
 	int autoframing;
 
 	/* these fields are only used in a peer */
+	char useragent[256];		/*!<  User agent in SIP request (saved from registration) */
 	char username[80];		/*!< Temporary username until registration */ 
 	char tohost[MAXHOSTNAMELEN];	/*!< If not dynamic, IP address */
 	char regexten[AST_MAX_EXTENSION]; /*!< Extension to register (if regcontext is used) */



More information about the asterisk-commits mailing list