[asterisk-commits] markster: branch markster/usersconf r42635 - /team/markster/usersconf/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Sep 9 20:55:07 MST 2006


Author: markster
Date: Sat Sep  9 22:55:07 2006
New Revision: 42635

URL: http://svn.digium.com/view/asterisk?rev=3D42635&view=3Drev
Log:
Minor iax2 fixups :)

Modified:
    team/markster/usersconf/channels/chan_iax2.c

Modified: team/markster/usersconf/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/markster/usersconf/channels/c=
han_iax2.c?rev=3D42635&r1=3D42634&r2=3D42635&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- team/markster/usersconf/channels/chan_iax2.c (original)
+++ team/markster/usersconf/channels/chan_iax2.c Sat Sep  9 22:55:07 2006
@@ -8427,7 +8427,11 @@
 				v =3D alt;
 				alt =3D NULL;
 			}
-			v=3Dv->next;
+			v =3D v->next;
+			if (!v) {
+				v =3D alt;
+				alt =3D NULL;
+			}
 		}
 		if (!peer->authmethods)
 			peer->authmethods =3D IAX_AUTH_MD5 | IAX_AUTH_PLAINTEXT;
@@ -9039,7 +9043,7 @@
 						AST_LIST_INSERT_HEAD(&users, user, entry);
 						AST_LIST_UNLOCK(&users);
 					}
-					peer =3D build_peer(cat, gen, ast_variable_browse(cfg, cat), 0);
+					peer =3D build_peer(cat, gen, ast_variable_browse(ucfg, cat), 0);
 					if (peer) {
 						AST_LIST_LOCK(&peers);
 						AST_LIST_INSERT_HEAD(&peers, peer, entry);



More information about the asterisk-commits mailing list