VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
asterisk at michiganbr... Guest
|
Posted: Thu Jun 26, 2008 7:20 pm Post subject: [asterisk-users] is it possible? 1 VOIP Provider Multiple re |
|
|
The scenario:
This is all done SIP with a VOIP provider (have to register to single IP)
We have two inbound DID numbers / Accounts.
We have to register each individually with the VOIP provider.
I'd like inbound from each registered account (DID)
to be able to come into a unique PEER or dialplan context.
What matters is that the inbound call lands in the context of my choice.
I've been told that the PEER can be made to match DID or account name but
I'm not sure how to do this.
In other words how to match a registration to a peer or inbound context
other that the single defined default.
I've also been told back in the asterisk 1.2 days that it was not possible.
I just recently upgraded to the latest 1.4 and am wondering if there have
been updates to make this work.
In the past I always had to bring all calls into a default context and
then use GOTO to get the inbound call where it needed to go.
Do I still need to do this today? or is there a better way to make this
actually work and come into the proper context.
I'm confused on how to get multiple registrations to be associated with
any more than one default registration inbound context, or somehow to
associate them with the peer of choice.
I've tried amongst other things appending /extension at context approach to a
register: line which does not work.
I've also tried adding "register=yes" inside a peer which seems to do
nothing meaning it does not cause the system to register with the VOIP
provider or even try to register.
Thanks for your help!
-Steve
Here's a small example of what I am working with:
Without getting into too much detail and showing
Please realize I have everything else working well except getting an
inbound call into a context that I choose.
So I've not provided any more detail showing that those actually exist in
the dialplan.. those work and I have working "s" and test extensions in my
dialplan contexts that work as well
register => 7341112222:testpassword at sip.exampleprovider.net
; standard inbound to 's' in default inbound context
; would like to be able to direct that inbound call
; into context1 instead of common default defined
register => 7341113333:testpassword at sip.exampleprovider.net/100 at context2
;example of me trying to get inbound call to 102 in context: context2
[peer-1]
type=peer
context=context1
secret=testpassword
username=7341112222
fromuser=7341112222
fromdomain=sip.exampleprovider.net
host=sip.exampleprovider.net
;register=yes
usereqphone=yes
insecure=very
nat=yes
canreinvite=yes
;call-limit=5
[peer-2]
type=peer
context=context2
secret=testpassword
username=7341113333
fromuser=7341113333
fromdomain=sip.exampleprovider.net
host=sip.exampleprovider.net
;register=yes
usereqphone=yes
insecure=very
nat=yes
canreinvite=yes
;call-limit=5
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. |
|
Back to top |
|
|
spamsucks2005 at gmail... Guest
|
Posted: Thu Jun 26, 2008 11:18 pm Post subject: [asterisk-users] is it possible? 1 VOIP Provider Multiple re |
|
|
On Fri, Jun 27, 2008 at 2:20 AM, Steve Gladden
<asterisk at michiganbroadband.com> wrote:
Quote: | In other words how to match a registration to a peer or inbound context
other that the single defined default.
I've also been told back in the asterisk 1.2 days that it was not possible.
|
Not true. When you register the /1234 on the end of the line sends it
to that extension in the context you specified in the peer entry with
context=.
You don't mention what exactly happens when a call comes in on one of
the DID? Unless the service provider has a non-standard method of
calling your asterisk, it should work as you expected. Also, you could
read the sample file that has every possible line in peer entries
commented and explains all the possible terms.
hth,
r |
|
Back to top |
|
|
asterisk at michiganbr... Guest
|
Posted: Sun Jun 29, 2008 8:58 pm Post subject: [asterisk-users] is it possible? 1 VOIP Provider Multiple re |
|
|
Quote: | Not true. When you register the /1234 on the end of the line sends it
to that extension in the context you specified in the peer entry with
context=.
| Thanks for your help..
Can you please re-explain maybe another way?
I'm having trouble understanding what you mean by:
context you specified in the peer entry with
I'm not sure what that means.
By default it will send it to 1234@ default context for sip registrations.
Problem I have is I have
1 peer that matches my register lines...
I have MULTIPLE regiter lines to same provider with different DID's
I have no idea how to get these calls into 3 different contexts
as the registration lines are identical EXCEPT for the DID or
username.
Quote: | On Fri, Jun 27, 2008 at 2:20 AM, Steve Gladden
<asterisk at michiganbroadband.com> wrote:
Quote: | In other words how to match a registration to a peer or inbound context
other that the single defined default.
I've also been told back in the asterisk 1.2 days that it was not
possible.
|
Not true. When you register the /1234 on the end of the line sends it
to that extension in the context you specified in the peer entry with
context=.
You don't mention what exactly happens when a call comes in on one of
the DID? Unless the service provider has a non-standard method of
calling your asterisk, it should work as you expected. Also, you could
read the sample file that has every possible line in peer entries
commented and explains all the possible terms.
hth,
r
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
|
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|