[asterisk-commits] oej: branch 1.2 r54179 - /branches/1.2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Feb 13 11:35:43 MST 2007


Author: oej
Date: Tue Feb 13 12:35:43 2007
New Revision: 54179

URL: http://svn.digium.com/view/asterisk?view=rev&rev=54179
Log:
Make sure that outbound calls are applied to the peer.
This fixes some issues with "hints not working", but only in 1.2.


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?view=diff&rev=54179&r1=54178&r2=54179
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Tue Feb 13 12:35:43 2007
@@ -2232,8 +2232,7 @@
 	ast_copy_string(name, fup->username, sizeof(name));
 
 	/* Check the list of users */
-	u = find_user(name, 1);
-	if (u) {
+	if (!outgoing && (u = find_user(name, 1))) {
 		inuse = &u->inUse;
 		call_limit = &u->call_limit;
 		p = NULL;



More information about the asterisk-commits mailing list