]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged 207316 from
authorRichard Mudgett <rmudgett@digium.com>
Sat, 18 Jul 2009 04:17:01 +0000 (04:17 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Sat, 18 Jul 2009 04:17:01 +0000 (04:17 +0000)
commitbcff5928395d3dea747fcef368362bae77fdc895
tree732d2ff01c84382674295dba6fba7b95ecee92d7
parent98e4ab57166a8d5107b34f6d150c81888b3a6231
Merged 207316 from
https://origsvn.digium.com/svn/asterisk/be/branches/C.2-...

..........
r207316 | rmudgett | 2009-07-17 23:05:05 -0500 (Fri, 17 Jul 2009) | 20 lines

Fixed incoming calls being matched to MSNs without type-of-number prefix added.

For an incoming ISDN call the dialed.number is incorrectly matched against
the configured MSNs in misdn.conf.  The numbers passed to the dialplan
include the configured prefix for the dialed.number_type, whereas the
check against the configured MSNs (to decide if the call is accepted at
all), is executed without the configured prefix.

e.g., dialed.number = 241168020, TON = national, configured national
prefix is "0".  (This is the TON which is used by ISDN providers in the
Netherlands.)

In chan_misdn.c:cb_events() in case EVENT_SETUP the call to
misdn_cfg_is_msn_valid() uses the unnormalized number 241168020, but 57
lines later the call to read_config() adds the prefix, and the
dialed.number is now 0241168020, which is then used in the dialplan.
misdn_cfg_is_msn_valid() must use the normalized number, too.

JIRA ABE-1912

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@207318 65c4cc65-6c06-0410-ace0-fbb531ad65f3
CHANGES
channels/chan_misdn.c