[asterisk-users] Re: How to separate outgoing extens from the contexts from sip.conf?

Paul Hales pdhales at optusnet.com.au
Wed Feb 21 16:35:38 MST 2007


Actually, 'context=' in sip.conf is the first place Asterisk looks for
when a number is dialled from the phone. It then uses 'includes' to
check for other options.

Usually, people use 'incoming' for their external lines, and something
else for the sip phones. I have used 'sip_phones' before.

regards,

PaulH

On Wed, 2007-02-21 at 16:11 -0600, Larry Alkoff wrote:
> Benny Amorsen wrote:
> >>>>>> "LA" == Larry Alkoff <labradley at mindspring.com> writes:
> > 
> > LA> I have a sip.conf with stanzas for sip phones that have
> > LA> 'context=sip-incoming for some Grandstream phones and another
> > LA> stanza for a Sipura SPA3000 with context=pstn-incoming.
> > 
> > LA> Reviewing the code today, I was dismayed to see that all my
> > LA> outgoing extens were mixed into those two. I have been told this
> > LA> is very insecure.
> > 
> > It shouldn't be insecure. It is perhaps a bit unusual to have calls
> > coming from your own phones labeled "incoming". That is probably the
> > source of the confusion.
> > 
> > 
> > /Benny
> 
> Thanks for the response /Benny
> 
> My understanding is that the 'context=whatever' in sip.conf is the name 
> of the context that handles incoming calls from the outside - that's 
> what I meant by 'incoming'.
> 
> I'm quite clear that 'incoming' means calls coming in from the outside.
> 
> The 'insecure' part is that knowlegable callers _could_ call in and use 
> various methods to make outside possibly expensive calls _if_ the 
> outgoing extens were in the same context.  I don't want that!
> 
> That's why I want a clear separation between the incoming calls from 
> outside and calls to the outside made by my phones on the inside.
> 
> The problem is I don't know how to use a context in extensions.conf 
> without referring to it in sip.conf (context=something).
> 
> Do you know of a way?
> 
> Larry



More information about the asterisk-users mailing list