[Asterisk-cvs] asterisk/channels chan_iax2.c,1.46,1.47
markster at lists.digium.com
markster at lists.digium.com
Wed Sep 3 23:08:00 CDT 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv5232/channels
Modified Files:
chan_iax2.c
Log Message:
Re-poke all peers on a reload (bug #216)
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** chan_iax2.c 2 Sep 2003 03:09:03 -0000 1.46
--- chan_iax2.c 4 Sep 2003 04:09:09 -0000 1.47
***************
*** 5251,5254 ****
--- 5251,5255 ----
struct iax2_registry *reg;
struct sockaddr_in dead_sin;
+ struct iax2_peer *peer;
strncpy(accountcode, "", sizeof(accountcode)-1);
amaflags = 0;
***************
*** 5260,5263 ****
--- 5261,5269 ----
for (reg = registrations; reg; reg = reg->next)
iax2_do_register(reg);
+ /* Qualify hosts, too */
+ ast_mutex_lock(&peerl.lock);
+ for (peer = peerl.peers; peer; peer = peer->next)
+ iax2_poke_peer(peer);
+ ast_mutex_unlock(&peerl.lock);
return 0;
}
More information about the svn-commits
mailing list