Calls to 5 digit numbers starting with 94 should go to gateway 10.52.10.188 !
Calls to numbers with different lenght starting with 0 should go to gateway 10.52.10.162 ! (for outside calls to our PSTN voice gateway)
I enabled IP dialing and configured this dial plan:
(94xxx<:@10.52.10.188>|0xx.<:@10.52.10.162>)
Calls to 94xxx are routed, calls to 0x(xxxx..) are only routed if I dial a # at the end.
Here are the tested call with the corespondenting debugs:
!! Dialing 94566 -> OK (Dial Plan 94xxx<:@10.52.10.188> matched) !!
2011-01-04 16:17:09 Local3.Debug 10.52.14.251 [0]Off Hook
2011-01-04 16:17:14 Local2.Debug 10.52.14.251 Calling:94566@10.52.10.188:0
!! Dialing 0123456# -> OK (Dial Plan 0xx.<:@10.52.10.162> matched) !!
2011-01-04 16:17:39 Local3.Debug 10.52.14.251 [0]Off Hook
2011-01-04 16:17:45 Local2.Debug 10.52.14.251 Calling:0123456@10.52.10.162:0
!! Dialing 0123456 (without #) -> not OK (Dial Plan 0xx.<:@10.52.10.162> should match) !!
2011-01-04 16:20:19 Local3.Debug 10.52.14.251 [0]Off Hook
2011-01-04 16:20:27 Local2.Debug 10.52.14.251 Calling:0123456@:0
After Interdigit Long Timer expires it seems that the call is routed to something like "Null0".
The description of the Interdigit Long Timer says that is is for a incomplete match but after I dialed 0 and at least one other digit the dial plan should match.
Any ideas?