[asterisk-commits] tilghman: trunk r213738 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 21 17:36:43 CDT 2009
Author: tilghman
Date: Fri Aug 21 17:36:39 2009
New Revision: 213738
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213738
Log:
Clarifying comments in sip_register, and removing a dead section
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=213738&r1=213737&r2=213738
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Aug 21 17:36:39 2009
@@ -7412,7 +7412,7 @@
* host2.extension => [extension]
* host1.expiry => [expiry]
*/
- AST_NONSTANDARD_RAW_ARGS(host2, hostpart, '/');
+ AST_NONSTANDARD_RAW_ARGS(host2, host1.hostpart, '/');
/*!
* user1.userpart => [peer?][transport://]user[@domain]
@@ -7423,18 +7423,7 @@
* host2.extension => extension
* host1.expiry => expiry
*/
- AST_NONSTANDARD_RAW_ARGS(host3, hostpart, ':');
-
- /*!
- * user2.userpart => [peer?][transport://]user[@domain]
- * user1.secret => secret
- * user1.authuser => authuser
- * host3.host => host
- * host3.port => port
- * host2.extension => extension (callback)
- * host1.expiry => expiry
- */
- AST_NONSTANDARD_RAW_ARGS(user2, user1.userpart, ':');
+ AST_NONSTANDARD_RAW_ARGS(host3, host2.hostpart, ':');
/*!
* user2.userpart => [peer?][transport://]user
@@ -7446,14 +7435,37 @@
* host2.extension => extension (callback)
* host1.expiry => expiry
*/
- AST_NONSTANDARD_RAW_ARGS(user2, user2.userpart, '@');
-
+ AST_NONSTANDARD_RAW_ARGS(user2, user1.userpart, '@');
+
+ /*!
+ * peername => peer
+ * user2.userpart => [transport://]user
+ * user2.domain => domain (regdomain)
+ * user1.secret => secret
+ * user1.authuser => authuser
+ * host3.host => host
+ * host3.port => port
+ * host2.extension => extension (callback)
+ * host1.expiry => expiry
+ */
if ((tmp = strchr(user2.userpart, '?'))) {
*tmp = '\0';
peername = user2.userpart;
user2.userpart = tmp + 1;
}
+ /*!
+ * peername => peer
+ * transport_str => transport
+ * username => user
+ * user2.domain => domain (regdomain)
+ * user1.secret => secret
+ * user1.authuser => authuser
+ * host3.host => host
+ * host3.port => port
+ * host2.extension => extension (callback)
+ * host1.expiry => expiry
+ */
if ((tmp = strstr(user2.userpart, "://"))) {
*tmp = '\0';
transport_str = user2.userpart;
More information about the asterisk-commits
mailing list