[svn-commits] file: branch 1.4 r44486 - /branches/1.4/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Oct 5 11:01:51 MST 2006


Author: file
Date: Thu Oct  5 13:01:51 2006
New Revision: 44486

URL: http://svn.digium.com/view/asterisk?rev=44486&view=rev
Log:
One more T.38 fix! Don't leave a reinvite hanging by a thread if the other side is already setup with T.38

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?rev=44486&r1=44485&r2=44486&view=diff
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Thu Oct  5 13:01:51 2006
@@ -13129,6 +13129,12 @@
 									transmit_response_reliable(p, "488 Not acceptable here", req);
 								sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
 							}
+						} else {
+							/* The other side is already setup for T.38 most likely so we need to acknowledge this too */
+							transmit_response_with_t38_sdp(p, "200 OK", req, XMIT_CRITICAL);
+							p->t38.state = T38_ENABLED;
+							if (option_debug)
+								ast_log(LOG_DEBUG, "T38 state changed to %d on channel %s\n", p->t38.state, p->owner ? p->owner->name : "<none>");
 						}
 					} else {
 						/* Other side is not a SIP channel */



More information about the svn-commits mailing list