Hi guys,
I’ve been stuggling with this for 2 weeks and it should be so easy to do. I’m totally stumped.
I have 2 DIDs for 2 different users. I want them to be seperate so that each has its own voicemail and I can track each users usage. I want to expand later with a voice menu for each number.
If I comment out 1 of the DID contexts the other works perfectly … same the other way around. Both register with the provider no problem.
If I have both DID contexts uncommented in the config then only 1 works… there must be some conflict, but I don’t see it.
Here is my config… really simple, 2 DIDs, 2 extensions, 2 inbound contexts… what am I doing wrong???
sip.conf
register =>5555556978:password@sip.voipservice.ca/5555556978
register =>5555556979:password@sip.voipservice.ca/5555556979
[5555556978]
type=peer
auth=md5
username=5555556978
fromuser=5555556978
fromdomain=voipservice.ca
port=5060
secret=password
host=sip.voipservice.ca
nat=yes
canreinvite=no
qualify=no
disallow=all
allow=ulaw
dtmfmode=rfc2833
insecure=very
context=inbound2
[5555556979]
type=peer
auth=md5
username=5555556979
fromuser=5555556979
fromdomain=voipservice.ca
port=5061
secret=password
host=sip.voipservice.ca
nat=yes
canreinvite=no
qualify=no
disallow=all
allow=ulaw
dtmfmode=rfc2833
insecure=very
context=inbound
[200_company1]
username=200_company1
type=friend
secret=asd
record_out=On-Demand
record_in=On-Demand
qualify=no
port=5061
nat=yes
mailbox=200@company1
host=dynamic
dtmfmode=rfc2833
context=sipoutbound
canreinvite=no
callerid=“Rob” <200>
[200_company2]
username=200_company2
type=friend
secret=asd
record_out=On-Demand
record_in=On-Demand
qualify=no
port=5060
nat=yes
mailbox=200@company2
host=dynamic
dtmfmode=rfc2833
context=sipoutbound2
canreinvite=no
callerid=“Bowie” <200>
extensions.conf
[inbound]
exten =>5555556979,1,SetAccount(5555556979)
exten =>5555556979,2,Ringing()
exten =>5555556979,3,Answer()
exten =>5555556979,4,Dial(SIP/200_company1,10,r)
exten =>5555556979,6,Hangup()
[inbound2]
exten =>5555556978,1,SetAccount(5555556978)
exten =>5555556978,2,Ringing()
exten =>5555556978,3,Answer()
exten =>5555556978,4,Dial(SIP/200_company2,50)
exten =>5555556978,6,Hangup()
Any help would be very appreciated … thanks!!
rob