mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +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;
|
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)
|
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);
|
chan_misdn_log(3,bc->port," --> EXPORT_PID: pid:%d\n",bc->pid);
|
||||||
sprintf(tmp,"%d",bc->pid);
|
sprintf(tmp,"%d",bc->pid);
|
||||||
pbx_builtin_setvar_helper(chan,"_MISDN_PID",tmp);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -324,6 +324,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);
|
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
|
#if DEBUG
|
||||||
printf("Building SETUP Msg\n");
|
printf("Building SETUP Msg\n");
|
||||||
#endif
|
#endif
|
||||||
|
@@ -40,6 +40,7 @@ Overview
|
|||||||
- Configuration
|
- Configuration
|
||||||
- Dial and Options String
|
- Dial and Options String
|
||||||
- misdn cli commands
|
- misdn cli commands
|
||||||
|
- mISDN Variables
|
||||||
- Debugging and sending Bugreports
|
- Debugging and sending Bugreports
|
||||||
- Examples
|
- Examples
|
||||||
- Known working Configurations
|
- Known working Configurations
|
||||||
@@ -235,6 +236,14 @@ where 1 is the Port of the Card where the phone is plugged in, and 101 is the
|
|||||||
msn (callerid) of the Phone to send the text to.
|
msn (callerid) of the Phone to send the text to.
|
||||||
|
|
||||||
|
|
||||||
|
mISDN Variables
|
||||||
|
---------------
|
||||||
|
|
||||||
|
mISDN Exports/Imports a few Variables:
|
||||||
|
|
||||||
|
- MISDN_ADDRESS_COMPLETE : Is either set to 1 from the Provider, or you
|
||||||
|
can set it to 1 to force a sending complete.
|
||||||
|
|
||||||
|
|
||||||
Debugging and sending bug reports
|
Debugging and sending bug reports
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
Reference in New Issue
Block a user