MISDN_ALERTING, /*!< when Alerting */
MISDN_BUSY, /*!< when BUSY */
MISDN_CONNECTED, /*!< when connected */
+ MISDN_PRECONNECTED, /*!< when connected */
MISDN_DISCONNECTED, /*!< when connected */
MISDN_BRIDGED, /*!< when bridged */
MISDN_CLEANING, /*!< when hangup from * but we were connected before */
}
}
-
void import_ies(struct ast_channel *chan, struct misdn_bchannel *bc)
{
const char *tmp;
tmp=pbx_builtin_getvar_helper(chan,"PRI_USER1");
if (tmp) bc->user1=atoi(tmp);
+
+ tmp=pbx_builtin_getvar_helper(chan,"PRI_PROGRESS_INDICATOR");
+ if (tmp) bc->progress_indicator=atoi(tmp);
}
void export_ies(struct ast_channel *chan, struct misdn_bchannel *bc)
sprintf(tmp,"%d",bc->user1);
pbx_builtin_setvar_helper(chan,"_PRI_USER1",tmp);
- pbx_builtin_setvar_helper(chan,"_RDNIS",bc->rad);
+ sprintf(tmp,"%d",bc->progress_indicator);
+ pbx_builtin_setvar_helper(chan,"_PRI_PROGRESS_INDICATOR",tmp);
}
ch->l3id=bc->l3_id;
ch->addr=bc->addr;
- if (bc->nt) {
+ if (bc->nt && ch->state == MISDN_PRECONNECTED ) {
/* OK we've got the very new l3id so we can answer
now */
start_bc_tones(ch);
}
/*we answer when we've got our very new L3 ID from the NT stack */
- if (bc->nt) break;
+ if (bc->nt) {
+ ch->state=MISDN_PRECONNECTED;
+ break;
+ }
/* notice that we don't break here!*/
;
bridging=no
+
+;
+; watches the L1s of every port. If one l1 is down it tries to
+; get it up. The timeout is given in seconds. with 0 as value it
+; does not watch the l1 at all
+;
+; default value: 0
+;
+; this option is only read at loading time of chan_misdn,
+; which means you need to unload and load chan_misdn to change the
+; value, an asterisk restart should do the trick
+;
+l1watcher_timeout=0
+
; stops dialtone after getting first digit on nt Port
;
; default value: yes