mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
added the export and import of the MISDN_ADDRESS_COMPLETE Variable to inidcate wether the extension is already completely dialed or if there might come additional digits by information elements. also added some docs for that.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3183,6 +3183,11 @@ void import_ch(struct ast_channel *chan, struct misdn_bchannel *bc, struct chan_
|
||||
if (ch->other_ch) ch->other_ch->other_ch=ch;
|
||||
}
|
||||
}
|
||||
|
||||
tmp=pbx_builtin_getvar_helper(chan,"MISDN_ADDRESS_COMPLETE");
|
||||
if (tmp && (atoi(tmp) == 1)) {
|
||||
bc->sending_complete=1;
|
||||
}
|
||||
}
|
||||
|
||||
void export_ch(struct ast_channel *chan, struct misdn_bchannel *bc, struct chan_list *ch)
|
||||
@@ -3192,6 +3197,11 @@ void export_ch(struct ast_channel *chan, struct misdn_bchannel *bc, struct chan_
|
||||
chan_misdn_log(3,bc->port," --> EXPORT_PID: pid:%d\n",bc->pid);
|
||||
sprintf(tmp,"%d",bc->pid);
|
||||
pbx_builtin_setvar_helper(chan,"_MISDN_PID",tmp);
|
||||
|
||||
if (bc->sending_complete) {
|
||||
sprintf(tmp,"%d",bc->sending_complete);
|
||||
pbx_builtin_setvar_helper(chan,"MISDN_ADDRESS_COMPLETE",tmp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -323,6 +323,10 @@ msg_t *build_setup (struct isdn_msg msgs[], struct misdn_bchannel *bc, int nt)
|
||||
|
||||
enc_ie_bearer(&setup->BEARER, msg, coding, capability, mode, rate, -1, user, nt,bc);
|
||||
}
|
||||
|
||||
if (bc->sending_complete) {
|
||||
enc_ie_complete(&setup->BEARER,msg, bc->sending_complete, nt, bc);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
printf("Building SETUP Msg\n");
|
||||
|
Reference in New Issue
Block a user