mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 44335 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r44335 | crichter | 2006-10-04 17:26:59 +0200 (Mi, 04 Okt 2006) | 1 line if INFORMATION Message come with keypad instead of called party number, we just use the keypad as called party number. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3705,6 +3705,12 @@ cb_events(enum event_e event, struct misdn_bchannel *bc, void *user_data)
|
||||
|
||||
if (ch->state == MISDN_WAITING4DIGS ) {
|
||||
/* Ok, incomplete Setup, waiting till extension exists */
|
||||
|
||||
if (ast_strlen_zero(bc->info_dad) && ! ast_strlen_zero(bc->keypad)) {
|
||||
chan_misdn_log(1, bc->port, " --> using keypad as info\n");
|
||||
strcpy(bc->info_dad,bc->keypad);
|
||||
}
|
||||
|
||||
{
|
||||
int l = sizeof(bc->dad);
|
||||
strncat(bc->dad,bc->info_dad, l);
|
||||
|
Reference in New Issue
Block a user