[Asterisk-Users] PRI with variable length numbers
The Traveller
traveler at xs4all.nl
Wed Jul 9 12:22:01 MST 2003
Hey Martin,
I'm not receiving fixed-length numbers on that PRI and it really seems
to be the Asterisk end which decides when dialling is complete.
I've arranged for a block of numbers, starting with "3", to be routed
from the Meridian to Asterisk, over this PRI. As long as the numbers
I set up in my dialplan don't start with the same digits, I can put in
numbers with varying lengths and it works OK, dialling them from an
extension on the Meridian. Don't ask me how, because I'm not really into
the low-level signalling-protocols on PRI's yet. I could send you
"pri intense debug"-output of some calls off-list, if you want to see for
yourself.
For example, I have set up several extensions in the range of
"3000" to "3099" for IP-phones, and those can all be dialled directly.
I also included a context in the incoming PRI-context
which allowed dialling IAXTel-numbers, with a prefix of "3", and you
can now indeed call "31700<rest of number>" from any extension on the
Meridian for an IAXTel-number. The Meridian has no special programming
to differentiate between dialled extensions in the "3"-range, so my
conclusion is that Asterisk signals when dialling is complete.
As Asterisk seems to be the one determining when the number is finished,
it seems possible to use the same extension matching-logic as on
analog ports.
Grtz,
Oliver
On Wed, Jul 09, 2003 at 13:25:33 -0500, Martin Pycko wrote:
> Why do you see the problem with that ?
>
> How would you use that functionality that analog channels have ?
>
> With PRI you're going to always receive the full number that was dialed.
> So since you have a limited number of DID's do the matching one for one
> and it'll work.
>
> regards
> Martin
>
> On Wed, 9 Jul 2003, The Traveller wrote:
>
> > Hey all,
> >
> > I have an Asterisk-box with an E100P and a PRI (Euro-ISDN) coming
> > into it from a Meridian-switch. The incoming numbers on this PRI all start
> > with the same digit and the last part of the dialled number is signalled to
> > Asterisk digit by digit, until Asterisk signals that the number is
> > complete and the call rings.
> >
> > All works well, unless I have 2 or more numbers which start with the same
> > digits. In that case, dialling will be signalled as complete as soon
> > as the shortest of the numbers is dialed. An example:
> >
> > exten => 31801,1, ...
> > exten => 3180,1, ...
> >
> > In this case, dialling "3180" will immediately start ringing, while
> > on similar setups, with TDM40B's and analog phones, Asterisk will
> > wait for the duration of "digittimeout" for more digits, if it can't
> > be absolutely certain that the dialled number is complete. If I remove
> > the "3180" in the above example, ringing will only start after "31801"
> > is fully dialled.
> >
> >
> > Relevant configs:
> >
> > /etc/zaptel.conf:
> >
> > bchan=1-15
> > dchan=16
> > bchan=17-31
> >
> > /etc/asterisk/zapata.conf:
> >
> > switchtype=euroisdn
> > signalling=pri_cpe
> > immediate=no
> >
> >
> > Any ideas?
> >
> >
> >
> > Grtz,
> >
> > Oliver
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list