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

2007-02-23 Thread Larry Alkoff
Problem solved and posted below. I may have found out at lease two things that may help others. Especial thanks to Eric ManPower, Benny Amorsen, Luan LIU, Paul Hales, Pavel Jezek and a _lot_ of research on the web. The problem was separating the contexts for incoming VOIP calls from the

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

2007-02-22 Thread Larry Alkoff
Benny Amorsen wrote: LA == Larry Alkoff [EMAIL PROTECTED] writes: LA If it's not a security issue I might as well have all phones with LA context=default in sip.conf even though voip-info specifically LA warns against that. Wonder why? Random SIP calls from the internet could end up in

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

2007-02-22 Thread Pavel Jezek
context 'default' has not any special, it's context, that will be used if your peers/users definition doesn't contain any specific context if you have permited 'anonymous' calls to your asterisk, i.e allowguest=yes, unautenticated calls (calls, that will not match any specific user in sip.conf)

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

2007-02-21 Thread Benny Amorsen
LA == Larry Alkoff [EMAIL PROTECTED] 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

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

2007-02-21 Thread Larry Alkoff
Benny Amorsen wrote: LA == Larry Alkoff [EMAIL PROTECTED] 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

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

2007-02-21 Thread Paul Hales
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.

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

2007-02-21 Thread Eric \ManxPower\ Wieling
Put your phones in the context=toll-access in sip.conf or zapata.conf Put the phone lines in context=incoming in sip.conf or zapata.conf extensions.conf: [extensions] exten = 667,1,Dial(SIP/whatever) ... more exten lines to dial your phones here [incoming] ; this is where calls from untrusted

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

2007-02-21 Thread Larry Alkoff
Hello Eric. I don't fully understand your example. I _think_ you have in extensions.conf: [incoming] include = extensions [extensions] exten = 667 more exten here [toll-trunks] exten = 91NXXNXX more exten here [toll-access] include = extensions include = toll-trunks My understanding of

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

2007-02-21 Thread Eric \ManxPower\ Wieling
Larry Alkoff wrote: Hello Eric. I don't fully understand your example. I _think_ you have in extensions.conf: [incoming] include = extensions [extensions] exten = 667 more exten here [toll-trunks] exten = 91NXXNXX more exten here [toll-access] include = extensions include = toll-trunks

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

2007-02-21 Thread Larry Alkoff
Eric ManxPower Wieling wrote: Larry Alkoff wrote: Hello Eric. I don't fully understand your example. I _think_ you have in extensions.conf: [incoming] include = extensions [extensions] exten = 667 more exten here [toll-trunks] exten = 91NXXNXX more exten here [toll-access] include =

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

2007-02-21 Thread Eric \ManxPower\ Wieling
Larry Alkoff wrote: Eric ManxPower Wieling wrote: Larry Alkoff wrote: Hello Eric. I don't fully understand your example. I _think_ you have in extensions.conf: [incoming] include = extensions [extensions] exten = 667 more exten here [toll-trunks] exten = 91NXXNXX more exten here

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

2007-02-21 Thread Larry Alkoff
Eric ManxPower Wieling wrote: Larry Alkoff wrote: Eric ManxPower Wieling wrote: Larry Alkoff wrote: Hello Eric. I don't fully understand your example. I _think_ you have in extensions.conf: [incoming] include = extensions [extensions] exten = 667 more exten here [toll-trunks] exten =

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

2007-02-21 Thread Eric \ManxPower\ Wieling
Larry Alkoff wrote: Eric ManxPower Wieling wrote: Larry Alkoff wrote: Eric ManxPower Wieling wrote: Larry Alkoff wrote: Hello Eric. I don't fully understand your example. I _think_ you have in extensions.conf: [incoming] include = extensions [extensions] exten = 667 more exten here

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

2007-02-21 Thread Larry Alkoff
Eric ManxPower Wieling wrote: Larry Alkoff wrote: Eric ManxPower Wieling wrote: Larry Alkoff wrote: Eric ManxPower Wieling wrote: Larry Alkoff wrote: Hello Eric. I don't fully understand your example. I _think_ you have in extensions.conf: [incoming] include = extensions [extensions]

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

2007-02-21 Thread Benny Amorsen
LA == Larry Alkoff [EMAIL PROTECTED] writes: LA If it's not a security issue I might as well have all phones with LA context=default in sip.conf even though voip-info specifically LA warns against that. Wonder why? Random SIP calls from the internet could end up in context default, if that is