One provider, two numbers and SIP

Hallo!

I have just recieved test access from my VoIP provider with real phone number, that can me reached from standard telephone. I have two numbers and it works perfectly with outgoing calls, but not so perfect with incoming. No matter what I do in sip.conf both numbers get the same extension. Any clue?

sip.conf:

register => xxx207002:@sip..net/700
register => xxx207003::xxx207002@sip..net/701
.
.
.

p.s. “sip show registry” shows both as “registered”.

Thanks,
-Half

we need to see the whole sip.conf, not just the register lines…

context=default
realm=asterisk
port=5060
bindaddr=0.0.0.0
pedantic=yes
maxexpirey=36000
defaultexpirey=12000
register => xxx207002:xxx@sip..net/700
register => xxx207003:xxx:016207002@sip..net/701
externip = a.b.c.d
localnet=192.168.0.0/12

[tic]
type=friend
context=default
secret=xxx
host=dynamic
username=tic
disallow=all
allow=ulaw
allow=alaw
allow=g723.1
allow=g729
allow=gsm

[domen]
type=friend
context=default
secret=xxx
host=dynamic
username=domen
disallow=all
allow=ulaw
allow=alaw
allow=g723.1
allow=g729
allow=gsm

[vun]
type=friend
username=xxx207002
fromuser=xxx207002
secret=xxx
host=sip..net
exten=700
context=default
insecure=very

[vun1]
type=friend
username=xxx207002
fromuser=xxx207003
secret=xxx
host=sip..net
exten=701
context=default
insecure=very

which extension do both numbers go to? 700?

It depends. I assume that on the extension that first get registered.

Thanx,
Half

I use IAX but had to put a context in my extensions.conf to route the calls when they come in. Hope this helps.

hmmm, can’t speak to that. i use AAH, so i don’t edit those files directly.

still a little confused are the extensions sip or iax but you should need something like this in the default context if that is where the calls are coming into

exten => _XXX207002,1,Dial(sip/context)

I have this in my extensions.conf.

exten => 700,1,Dial(SIP/tic,20,rt)
exten => 701,1,Dial(IAX2/marko)

If I understood correctly, because i have /700 at the end of registration? Did I get something wrong?:slight_smile:

Extensions 700 and 701 are softphones on 2 different pcs and “local” calls (i.e. from 700->701 and vica verse) works fine.

My provider only supports SIP.

Thanx,
Half

Is the provider passing you the number that was called? if not then make 2 differnt context one for each number and put the extension in the same context in the IAX file

Nop. In sip debug numbers are different. it is number@127.0.0.1. I cannot use IAX2, since my provider does not support it. I’ve tried to make two different context, same thing. SIP engine always call one context Is there any known issue about it?

Thanx,
Half

post you exstensions.conf

i wonder if this is some SIP/NAT issue?

Can this be done with SIP? I thought you needed to make a separate registration for each number and route it using the /exten in the registration line (and also in the extensions.conf), but if I can pool all my numbers into one registration and and get asterisk to otherwise devise what number has been called, it would make my configuration lot simpler.

you are correct from what I can find abouit this zhadnost. I only use pri for inbound so I never really thought about it before. I could see where this would be a problem when managing large amounts of numbers

From memory, gradwells service can be set up to not require registrations and just have a default ip set. Afaik though they are the only company that provide this at the moment.