[asterisk-commits] crichter: trunk r96221 - in /trunk: ./ channels/chan_misdn.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 3 08:47:31 CST 2008
Author: crichter
Date: Thu Jan 3 08:47:30 2008
New Revision: 96221
URL: http://svn.digium.com/view/asterisk?view=rev&rev=96221
Log:
Merged revisions 96198 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r96198 | crichter | 2008-01-03 13:08:40 +0100 (Do, 03 Jan 2008) | 1 line
when overlapdial was used and no number was dialed, the call was dropped, now we just jump into the s extension, which makes a lot more sense.
........
Modified:
trunk/ (props changed)
trunk/channels/chan_misdn.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_misdn.c?view=diff&rev=96221&r1=96220&r2=96221
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Thu Jan 3 08:47:30 2008
@@ -685,9 +685,16 @@
diff = ast_tvdiff_ms(tv_end, tv_now);
if (diff <= 100) {
+ char *dad=ch->bc->dad, sexten[]="s";
/* if we are 100ms near the timeout, we are satisfied.. */
stop_indicate(ch);
- if (ast_exists_extension(ch->ast, ch->context, ch->bc->dad, 1, ch->bc->oad)) {
+
+ if (ast_strlen_zero(ch->bc->dad)) {
+ dad=sexten;
+ strcpy(ch->ast->exten, sexten);
+ }
+
+ if (ast_exists_extension(ch->ast, ch->context, dad, 1, ch->bc->oad)) {
ch->state=MISDN_DIALING;
if (pbx_start_chan(ch) < 0) {
chan_misdn_log(-1, ch->bc->port, "ast_pbx_start returned < 0 in misdn_overlap_dial_task\n");
More information about the asterisk-commits
mailing list