[Asterisk-Users] include behavior (word puzzle of the day)

Damon Estep damon at suburbanbroadband.net
Thu Aug 4 17:26:44 MST 2005


In the example below context2 is included in context3 because it is
included in context1.

 

Is there a way to include context2 in context1, and context1 in
context3, but not context2 in context3 as a result.

 

[Context1]

;sip users with 10 digit extensions

Include => context2

 

[context2]

;media gateway terminating local 10 digit calls

 

[context3]

;inbound PRI via media gateway

Include => context1

 

I have a case where a dialplan is insecure because inbound calls in
context3 can be re-routed back out in context2. Actually, what occurs is
a loop, where the call comes in context3, finds no match in context1,
egresses in context2, and repeats the loop, setting up a lot of calls in
a short period of time!

 

Extensions in context1 need to be able to reach extensions in context2

 

Inbound calls into context3 need to be able to reach extensions in
context1

 

Inbound calls in context3 MUST be restricted from reaching extensions in
context2 which are outside extensions sent out to a SIP provider.

 

It would seem more logical and secure if includes did not cascade, or
would not make 2 "hops"

 

Perhaps I have failed to understand some simple concept that would
resolve this issue?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050804/5c646c88/attachment.htm


More information about the asterisk-users mailing list