[asterisk-commits] rizzo: branch rizzo/astobj2 r47506 -
/team/rizzo/astobj2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Nov 12 07:59:22 MST 2006
Author: rizzo
Date: Sun Nov 12 08:59:22 2006
New Revision: 47506
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47506
Log:
merge version 47477, schedule a destroy after a BYE on a Refer(?)
Modified:
team/rizzo/astobj2/channels/chan_sip.c
Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=47506&r1=47505&r2=47506
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Sun Nov 12 08:59:22 2006
@@ -2110,9 +2110,16 @@
if (option_debug > 2)
ast_log(LOG_DEBUG, "Finally hanging up channel after transfer: %s\n", p->callid);
transmit_request_with_auth(p, SIP_BYE, 0, XMIT_RELIABLE, 1);
+ append_history(p, "ReferBYE", "Sending BYE on transferer call leg %s", p->callid);
+ sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
pvt_unref(p);
- } else
- sip_destroy(p); /* absorb the reference */
+ } else {
+ append_history(p, "AutoDestroy", "%s", p->callid);
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Auto destroying SIP dialog '%s'\n", p->callid);
+ sip_destroy(p); /* Go ahead and destroy dialog. All attempts to recover is done */
+ /* also absorbs the reference we have */
+ }
return 0;
}
More information about the asterisk-commits
mailing list