Asterisk and multiple sip provider

starlab76

Neuer User
Mitglied seit
14 Mai 2006
Beiträge
13
Punkte für Reaktionen
0
Punkte
0
Hi
I have this problem

I need to register more voip phone numbers in asterisk from same provider.
So I will have multiple register string and multiple provider contexts.

If I use different provider all works without problem, but if I use same voip provider with multiple lines I can call without problem but I can't receive calls correctly. Only one register string accept calls other are refused.
I read that this is an asterisk problem, very big problem!

I readed here http://www.voip-forum.com/news.php?p=187 that there is a subversion that sorve the problem, but I can't compile it al lot of errors.
Is thaere anyone that has solved this problem?

Best regards
Walter
 
I did not have any problems with the registration of 3 SIP accounts with 1und1, a German provider. In my sip.conf, I register with

Code:
register => 49123451:[email protected]/49123451
register => 49123452:[email protected]/49123452

[49123451]
type=peer
username=49123451
fromuser=49123451
secret=pass
host=1und1.de
fromdomain=1und1.de
insecure=very
canreinvite=no
nat=no
maxexpirey=3600
defaultexpirey=3600

[49123452]
type=peer
username=49123452
fromuser=49123452
secret=pass
host=1und1.de
fromdomain=1und1.de
insecure=very
canreinvite=no
nat=no
maxexpirey=3600
defaultexpirey=3600

; After all 1und1-accounts I collect all inbound calls provided by 1und1 in a special ;context:
[1und1-inbound]
type=peer
fromdomain=1und1.de
host=sip.1und1.de
context=1und1-inbound

In my extentions.conf I mention every account and signal it to my SIP-phones.

Hope, this helps.

Kind regards,
Fant
 
Hi Fant
Thanks for your post!

I have try to set my italian provider Messagenet like your code, but not works :(

I can call without problem but I can recive only from one did, that it's the fastest that do registration in the voip network.

Maybe not all voip providers are same...

Is there a software gateway that I can use like bridge? I see SER but I can't use it for trunk... or incoming * 1.4 will solve this problem? Anybody know?

Thanks
Walter
 
starlab76 schrieb:
I can call without problem but I can recive only from one did, that it's the fastest that do registration in the voip network.

Make a specaly incoming context for this provider without a password.
It have to be the last context for this provider.
 
If you do an register like:

register => usernameOne:password@same_provider/MyExtension
register => usernameTwo:password@same_provider/MyOtherExtension

The provider should confirm the registration in the contact field with MyExtension or MyOtherExtension. So Asterisk knows when a call is comming in what to do.

Sometimes you have to filter with extension usernameOne and usernameTwo, especially if the username is alphanumeric.

use sip debug to see details of the registration and how it works.
I dont think Asterisk is doing wrong.
 
Hi kombjuder
You are right! My mistake was that the context for incoming wasn't the last!

Thanks for support and the big Help!

I'm sure that this forum is the best!
Thanks again

Walter
 
Kostenlos!

Statistik des Forums

Themen
248,853
Beiträge
2,302,876
Mitglieder
378,501
Neuestes Mitglied
Dalle85