Hi all,
I am trying to register my astersik box on my sip provider with 2 different accounts. Actually the accounts are registering very well. The problem that I want to place incoming calls from each account to a different context. But with my actual configuration wherever the call comes from they are routed to the same context. I suppose it is because I have the same hostname in the 2 contexts.
This is my sip.conf :
[general]
port=5060
register => user1:password1@myprovider.com
register => user2:password2@myprovider.com
[myprovider_incoming1]
type=peer
host=myprovider.com
context=from_myprovider_1
nat=yes
canreinvite=no
[myprovider_incoming2]
type=peer
host=myprovider.com
context=from_myprovider_2
nat=yes
canreinvite=no
[myprovider_out1]
type=peer
host=myprovider.com
user=user1
secret=password1
fromuser=user1
fromdomain=myprovider.com
nat=yes
canreinvite=no
[myprovider_out2] ; configuration des appels sortants par ippi
type=peer
host=myprovider.com
user=user2
secret=password2
fromuser=user2
fromdomain=myprovider.com
nat=yes
canreinvite=no
Thanks to all