diff options
author | Christian Richter <christian.richter@beronet.com> | 2006-03-27 10:13:11 +0000 |
---|---|---|
committer | Christian Richter <christian.richter@beronet.com> | 2006-03-27 10:13:11 +0000 |
commit | bd4715f3bcc0726a93061375bb3644bd917ce360 (patch) | |
tree | bc82231ecc07cedd1589b7586b1281692ed9fcda /channels/chan_misdn.c | |
parent | 15873eb39cd360a05f8b1c209e473574e961a1d8 (diff) |
fixed hicom busy bug, we now see if the systemphone is busy, also fixed the immediate=yes does not work anymore issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r-- | channels/chan_misdn.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index 96b1fa46d..ba9aacc87 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -3324,6 +3324,16 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data) } + /* check if we should jump into s when we have no dad */ + { + int im; + misdn_cfg_get( bc->port, MISDN_CFG_IMMEDIATE, &im, sizeof(im)); + if ( im && ast_strlen_zero(bc->dad) ) { + do_immediate_setup(bc, ch , chan); + break; + } + } + chan_misdn_log(5,bc->port,"CONTEXT:%s\n",ch->context); if(!ast_canmatch_extension(ch->ast, ch->context, bc->dad, 1, bc->oad)) { |