[svn-commits] alecdavis: trunk r249320 - /trunk/channels/sig_pri.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Feb 27 16:49:57 CST 2010


Author: alecdavis
Date: Sat Feb 27 16:49:51 2010
New Revision: 249320

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=249320
Log:
overlap receiving: automatically send CALL PROCEEDING when dialplan starts

Following Q.931 5.2.4
When the user has determined that sufficient call information has been received the 
user shall stop T302 and send CALL PROCEEDING to the network.

Previously timeouts were possible if the dialplan took a long time to issue any
response back to the network.

Verified that our local TELCO also does the same.

(issue #16789)
Reported by: alecdavis
Patches: 
      overlap_receiving_trunk.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis


Modified:
    trunk/channels/sig_pri.c

Modified: trunk/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sig_pri.c?view=diff&rev=249320&r1=249319&r2=249320
==============================================================================
--- trunk/channels/sig_pri.c (original)
+++ trunk/channels/sig_pri.c Sat Feb 27 16:49:51 2010
@@ -1308,6 +1308,18 @@
 		/* Start the real PBX */
 		ast_copy_string(chan->exten, exten, sizeof(chan->exten));
 		sig_pri_dsp_reset_and_flush_digits(p);
+		if (p->pri->overlapdial & DAHDI_OVERLAPDIAL_INCOMING) {
+			if (p->pri->pri) {		
+				if (!pri_grab(p, p->pri)) {
+					pri_proceeding(p->pri->pri, p->call, PVT_TO_CHANNEL(p), 0);
+					p->proceeding = 1;
+					pri_rel(p->pri);
+				} else {
+					ast_log(LOG_WARNING, "Unable to grab PRI on span %d\n", p->pri->span);
+				}
+			}
+		}
+
 		sig_pri_set_echocanceller(p, 1);
 		ast_setstate(chan, AST_STATE_RING);
 		res = ast_pbx_run(chan);




More information about the svn-commits mailing list