[asterisk-commits] mjordan: testsuite/asterisk/trunk r4094 - /asterisk/trunk/tests/apps/dial/dia...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 28 09:10:58 CDT 2013
Author: mjordan
Date: Wed Aug 28 09:10:56 2013
New Revision: 4094
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4094
Log:
Delay slightly before hanging up the call
Modified:
asterisk/trunk/tests/apps/dial/dial_hangup/hangup.py
Modified: asterisk/trunk/tests/apps/dial/dial_hangup/hangup.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_hangup/hangup.py?view=diff&rev=4094&r1=4093&r2=4094
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_hangup/hangup.py (original)
+++ asterisk/trunk/tests/apps/dial/dial_hangup/hangup.py Wed Aug 28 09:10:56 2013
@@ -8,6 +8,8 @@
import logging
+from twisted.internet import reactor
+
LOGGER = logging.getLogger(__name__)
def send_hangup(ami, event):
@@ -16,6 +18,6 @@
channel = event['channel']
LOGGER.info('Hanging up channel %s' % channel)
- ami.hangup(channel)
+ reactor.callLater(2, ami.hangup, channel)
return True
More information about the asterisk-commits
mailing list