Sorry this is a bit of a newbie question, I've been at this for a few months and still have not quite figured this one out. I've been able to setup one itsp (incoming calls) (sip account) with a register line like this: register => nnnnnnn:ppppp@sip.provider.net -or- register => nnnnnnn:ppppp@sip.provider.net/nnn to come directly into an extension in the dialplan It seems that this only works with the default context in the dialplan. I have another sip account from another provider that I would like all of it's incoming calls to come into the s, extension of a new context but I have been unable to figure out how to bring calls from a register line into an alternate context. It seems that register lines are limited to only being used in the general section of sip.conf and you are limited to one contextstatement there. Is there a way to register a second account and have it's calls come into another context in the dialplan? register lines only seem to work in [general] and it seems like you are limited to only one inbound context here. I would like the two inbound call accounts to be 'isolated' from each other and not have to come in on the same incoming context in the dialplan. I'd also like to be able to have them have their own contexts with thier own s, (start) extension available. Thanks! Steve
Ok :) ---------- From: Rich Adamson[SMTP:radamson@routers.com] Reply To: Asterisk Users Mailing List - Non-Commercial Discussion Sent: Monday, October 10, 2005 11:25 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] sip register incoming call contexts?> Sorry this is a bit of a newbie question, I've been at this for a few > months and still have not quite figured this one out. > > > I've been able to setup one itsp (incoming calls) (sip account) with a > register line like this: > > register => nnnnnnn:ppppp@sip.provider.net > > -or- > > register => nnnnnnn:ppppp@sip.provider.net/nnn > to come directly into an extension in the dialplan > > > It seems that this only works with the default context in the dialplan. > > > I have another sip account from another provider that I would like > all of it's incoming calls to come into the s, extension of > a new context but I have been unable to figure out > how to bring calls from a register line into an alternate context. > > It seems that register lines are limited to only being used in the > general section of sip.conf and you are limited to one context> statement there. > > Is there a way to register a second account and have it's calls come into > another context in the dialplan? > > register lines only seem to work in [general] and it seems like you > are limited to only one inbound context here. > > I would like the two inbound call accounts to be 'isolated' from each other > and not have to come in on the same incoming context in the dialplan. > > I'd also like to be able to have them have their own contexts with thier > own s, (start) extension available.Try using something like: deny=0.0.0.0/0.0.0.0 permit=147.135.8.129/255.255.255.0 permit=147.135.0.129/255.255.255.0 permit=147.135.4.128/255.255.255.0 in each sip.conf itsp definition to limit which contexts will match. Obviously, replace the above permit's IP addresses with the correct ones for your provider. _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@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
> Sorry this is a bit of a newbie question, I've been at this for a few > months and still have not quite figured this one out. > > > I've been able to setup one itsp (incoming calls) (sip account) with a > register line like this: > > register => nnnnnnn:ppppp@sip.provider.net > > -or- > > register => nnnnnnn:ppppp@sip.provider.net/nnn > to come directly into an extension in the dialplan > > > It seems that this only works with the default context in the dialplan. > > > I have another sip account from another provider that I would like > all of it's incoming calls to come into the s, extension of > a new context but I have been unable to figure out > how to bring calls from a register line into an alternate context. > > It seems that register lines are limited to only being used in the > general section of sip.conf and you are limited to one context> statement there. > > Is there a way to register a second account and have it's calls come into > another context in the dialplan? > > register lines only seem to work in [general] and it seems like you > are limited to only one inbound context here. > > I would like the two inbound call accounts to be 'isolated' from each other > and not have to come in on the same incoming context in the dialplan. > > I'd also like to be able to have them have their own contexts with thier > own s, (start) extension available.Try using something like: deny=0.0.0.0/0.0.0.0 permit=147.135.8.129/255.255.255.0 permit=147.135.0.129/255.255.255.0 permit=147.135.4.128/255.255.255.0 in each sip.conf itsp definition to limit which contexts will match. Obviously, replace the above permit's IP addresses with the correct ones for your provider.
Olle E. Johansson
2005-Oct-10 10:14 UTC
[Asterisk-Users] sip register incoming call contexts?
Steve Gladden wrote:> Sorry this is a bit of a newbie question, I've been at this for a few > months and still have not quite figured this one out. > > > I've been able to setup one itsp (incoming calls) (sip account) with a > register line like this: > > register => nnnnnnn:ppppp@sip.provider.net > > -or- > > register => nnnnnnn:ppppp@sip.provider.net/nnn > to come directly into an extension in the dialplan > > > It seems that this only works with the default context in the dialplan. > > > I have another sip account from another provider that I would like > all of it's incoming calls to come into the s, extension of > a new context but I have been unable to figure out > how to bring calls from a register line into an alternate context.Create a peer with a host= setting that matches the IP of the service provider's proxy. Set context for this peer. There are several examples out there, one is http://edvina.net/broadvoice/ /Olle
Thor Atle Rustad
2005-Oct-14 04:07 UTC
[Asterisk-Users] sip register incoming call contexts?
Hello, I have set up 2 different fwd.pulver.com <http://fwd.pulver.com> accounts on my Asterisk. One will ring all my phones through one context, while the other account was set up to fool Nigerian scam artists, and will go directly to a special voicemail (after a few rings to give the impression of ringing a real telephone). I will not even know somebody called until I get the voicemail in the mail. The first register goes like this: register => 18469:secret@fwd.pulver.com/89 while the number that goes directly to the answering machine is as follows: register => 18336:secret@fwd.pulver.com/36 Then I match the digits (36 and 89) within the contexts. 89 triggers the [inbound-fwd] context, while 36 triggers [boguscall]: [boguscall] exten => 36,1,NoOp(This is context boguscall) exten => 36,2,Wait(0) exten => 36,3,Ringing exten => 36,4,Wait(15) exten => 36,5,Voicemail(su36) exten => 36,6,Hangup [inbound-fwd] exten => 89,2,Goto(ringall,${EXTEN},1) ; will go to context [ringall] [ringall] ; Dial all telephones in the house exten => _X.,1,Dial(SIP/30&SIP/31&SIP/32,35),t Thor On 10/10/05, Steve Gladden <Asterisk@michiganbroadband.com> wrote:> > Sorry this is a bit of a newbie question, I've been at this for a few > months and still have not quite figured this one out. > > > I've been able to setup one itsp (incoming calls) (sip account) with a > register line like this: > > register => nnnnnnn:ppppp@sip.provider.net > > -or- > > register => nnnnnnn:ppppp@sip.provider.net/nnn<http://nnnnnnn:ppppp@sip.provider.net/nnn> > to come directly into an extension in the dialplan > > > It seems that this only works with the default context in the dialplan. > > > I have another sip account from another provider that I would like > all of it's incoming calls to come into the s, extension of > a new context but I have been unable to figure out > how to bring calls from a register line into an alternate context. > > It seems that register lines are limited to only being used in the > general section of sip.conf and you are limited to one context> statement there. > > Is there a way to register a second account and have it's calls come into > another context in the dialplan? > > register lines only seem to work in [general] and it seems like you > are limited to only one inbound context here. > > I would like the two inbound call accounts to be 'isolated' from each > other > and not have to come in on the same incoming context in the dialplan. > > I'd also like to be able to have them have their own contexts with thier > own s, (start) extension available. > > > Thanks! > > Steve > > > > > > > > > > > > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>-- > > Asterisk-Users mailing list > Asterisk-Users@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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051014/d46e79de/attachment.htm