asterisk/channels
Richard Mudgett bcff592839 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
2009-07-18 04:17:01 +00:00
..
h323 fixes some memory leaks and redundant conditions 2009-06-18 16:37:42 +00:00
misdn Merged revisions 206706 via svnmerge from 2009-07-15 21:14:41 +00:00
xpmr fixes some memory leaks and redundant conditions 2009-06-18 16:37:42 +00:00
Makefile New signaling module to handle PRI/BRI operations in chan_dahdi 2009-06-25 19:54:12 +00:00
chan_agent.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_alsa.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_bridge.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_console.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_dahdi.c Merged revisions 207155 via svnmerge from 2009-07-17 19:37:38 +00:00
chan_gtalk.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_h323.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_iax2.c fixes an error in r203638 CEL commit 2009-07-17 22:07:36 +00:00
chan_jingle.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_local.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_mgcp.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_misdn.c Merged 207316 from 2009-07-18 04:17:01 +00:00
chan_multicast_rtp.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_nbs.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_oss.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_phone.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_phone.h rename DialTone.h to chan_phone.h because chan_phone.c is the only file using it 2008-05-28 20:00:21 +00:00
chan_sip.c sip option flags handled incorrectly 2009-07-17 17:51:44 +00:00
chan_skinny.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_unistim.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_usbradio.c Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
chan_vpb.cc Merge the new Channel Event Logging (CEL) subsystem. 2009-06-26 15:28:53 +00:00
console_board.c import the recent additions for video console into trunk, 2008-06-29 21:17:14 +00:00
console_gui.c Const-ify the world (or at least a good part of it) 2009-05-21 21:13:09 +00:00
console_video.c (closes issue #13557) 2008-10-09 14:17:33 +00:00
console_video.h implement the 'freeze' function for incoming frames; 2008-06-30 15:45:15 +00:00
iax2-parser.c Tell the IAX2 parser about more control frame types. 2009-06-01 21:03:18 +00:00
iax2-parser.h Merged revisions 194557,194685 via svnmerge from 2009-05-15 20:52:12 +00:00
iax2-provision.c - iax2-provision was not freeing iax_templates structure when unloading the chan_iax2.so module. 2008-12-03 19:25:30 +00:00
iax2-provision.h Don't reload a configuration file if nothing has changed. 2007-08-16 21:09:46 +00:00
iax2.h Merged revisions 194557,194685 via svnmerge from 2009-05-15 20:52:12 +00:00
misdn_config.c Const-ify the world (or at least a good part of it) 2009-05-21 21:13:09 +00:00
sig_analog.c Fix segfault in sig_analog when using callwaiting, respect callwaiting options 2009-07-17 17:02:44 +00:00
sig_analog.h The dialing flag was mistakingly removed from sig_pri. 2009-07-15 22:02:55 +00:00
sig_pri.c The dialing flag was mistakingly removed from sig_pri. 2009-07-15 22:02:55 +00:00
sig_pri.h The dialing flag was mistakingly removed from sig_pri. 2009-07-15 22:02:55 +00:00
vcodecs.c Const-ify the world (or at least a good part of it) 2009-05-21 21:13:09 +00:00
vgrabbers.c free memory used by the x11 grabber when closing it. 2008-07-14 16:50:54 +00:00