[Asterisk-Users] Extensions / Contexts

Wiley Siler wsiler at education2020.com
Wed Apr 27 06:50:46 MST 2005


Good points.  I stand corrected.   

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Chris Wade
Sent: Tuesday, April 26, 2005 2:41 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Extensions / Contexts

Wiley Siler wrote:
> The short answer is No.
> 

Wrong, the short answer is maybe.

> The method you describe is intrinsicly illogical.  
> Assuming there is an IVR, how will I know which extension 2000 I am 
> calling if that were possible?
> I might get company A instead of company B.
> 

If you get this behavior in your IVR's then you need to redesign them. 
If what you say were true, I couldn't have a multiple level IVR where
"1" takes to you another menu which has another "1" in it that takes me
to another menu with another "1" in it!  Also, remember that a DEVICE is
NOT an EXTENSION!

> You can create two * servers with identical dial plans, link them over

> IAX, and allow users to call each other if they use a rpefix lke 7.
> Example:  Comp-A user 2000 calls comp-B user 2000 by dialing 72000.
> 

This would work, but why?  Use contexts, that's what they are there for
- dialplan 'partitioning'.

> Now if you want to use one server only, then just use 200x for one 
> company and 300x for the other and segment the dial plans.
> 
> W
>  

Again, this would work, but why?  And now you've got a higher potential
of CompanyA customers reaching CompanyB employees - not good.

> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> Sebastian Silva
> Sent: Tuesday, April 26, 2005 11:29 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [Asterisk-Users] Extensions / Contexts
> 
> Hi everybody,
> 

<snip>

> [2000]
> username=companyA_2000
> context=contextCompanyA
> 
> [2000]
> username=companyB_2000
> context=contextCompanyB
> 
> Any help will be appreciated.
> Sebas

Your example there should work with one minor change.  Make the part in
the brackets unique.  Meaning [a2000] and [b2000] or similar.  Then,
from within your dialplan configure extension => 2000 in context
[CompanyA] to dial SIP/a2000 and similar for CompanyB, making exten =>
2000 in context [CompanyB] dial SIP/b2000.

This entire topic has been discussed multiple times on the list.  Please
read the archives, use google and the 'site:' argument.

-Chris

PS:  Remember that a DEVICE is NOT an EXTENSION!
PPS:  Remember that an EXTENSION need NOT be a DEVICE!

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list