[asterisk-users] 2 PRI on asterisk

Noah Miller noahisaacmiller at gmail.com
Tue Jul 17 10:47:48 CDT 2007


Hi Satish -

>                 I am going to install 2 port pri card on asterisk but i dont
> know how to incomming call goes in to IVR and how to route call outside base
> on pattern match means if some one call on mobile phone then use PRI 1 and
> if call on landline phon call route through pri 2 how to make dission base
> on pattern number

Will your PRIs have DID (Direct Inward Dialing)?  If so, you can
direct calls based on the DID number.  For example, if you have the
PRI in the incoming context, and your DID numbers are in the 1000-1099
range, you can use extensions like this:

[incoming]
exten => _10XX,1,Playback(IVR-Start)

or use individual numbers like this:

exten => 1023,1,Dial(SIP/23,20,t)

TIPS: You can usually tell your provider how many digits you want to
receive for your DIDs.  In the North American Numbering Plan, you can
usually ask for 4 digits (as above), 7 digits, or 10 digits.

If your PRIs don't have DID, you can direct your calls just like you
would for a Zaptel analog line.  Again, if you have your PRI in the
incoming context:

[incoming]
exten => s,1,Playback(IVR-start)


If you dont' have DID, and want to differentiate between the two PRIs,
you can put each in its own context.  So, PRI-A is in the [incoming-A]
context and PRI-B is in the [incoming-B] context.  You can then assign
different actions to the 's' extension in each context:

[incoming-A]
exten => s,1,Playback(IVR-Start)

[incoming-B]
exten => s,1,Dial(SIP/100)


- Noah



More information about the asterisk-users mailing list