[asterisk-commits] dvossel: branch 1.6.2 r227239 - in /branches/1.6.2: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 3 11:15:04 CST 2009


Author: dvossel
Date: Tue Nov  3 11:14:55 2009
New Revision: 227239

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=227239
Log:
Merged revisions 227238 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r227238 | dvossel | 2009-11-03 11:12:52 -0600 (Tue, 03 Nov 2009) | 5 lines
  
  user.conf entries in SIP were not having their peer type set.
  
  (closes issue #16120)
  Reported by: jsmith
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/channels/chan_sip.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=227239&r1=227238&r2=227239
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Tue Nov  3 11:14:55 2009
@@ -24711,6 +24711,8 @@
 				if (ast_true(hassip) || (!hassip && genhassip)) {
 					peer = build_peer(cat, gen, ast_variable_browse(ucfg, cat), 0, 0);
 					if (peer) {
+						/* user.conf entries are always of type friend */
+						peer->type = SIP_TYPE_USER | SIP_TYPE_PEER;
 						ao2_t_link(peers, peer, "link peer into peer table");
 						if ((peer->type & SIP_TYPE_PEER) && peer->addr.sin_addr.s_addr) {
 							ao2_t_link(peers_by_ip, peer, "link peer into peers_by_ip table");




More information about the asterisk-commits mailing list