diff -r d7ae7fd8a214 -r e568963742d6 asterisk/asterisk.patch.proxymwi --- a/asterisk/asterisk.patch.proxymwi Tue Aug 28 18:32:00 2012 +0200 +++ b/asterisk/asterisk.patch.proxymwi Tue Aug 28 18:32:05 2012 +0200 @@ -2,7 +2,7 @@ diff -Nau channels/chan_sip.c.orig channels/chan_sip.c --- channels/chan_sip.c.orig 2011-01-14 18:32:52.000000000 +0100 +++ channels/chan_sip.c 2011-03-13 14:34:29.000000000 +0100 -@@ -25085,6 +25085,7 @@ +@@ -25791,6 +25791,7 @@ struct sip_pvt *p; int newmsgs = 0, oldmsgs = 0; const char *vmexten = NULL; @@ -10,7 +10,7 @@ ao2_lock(peer); -@@ -25138,6 +25139,11 @@ +@@ -25852,6 +25853,11 @@ } /* Recalculate our side, and recalculate Call ID */ ast_sip_ouraddrfor(&p->sa, &p->ourip, p); @@ -20,5 +20,5 @@ + if (s != NULL) + *s = 0; build_via(p); - ao2_t_unlink(dialogs, p, "About to change the callid -- remove the old name"); - build_callid_pvt(p); + + ao2_lock(peer);