Thanks for the info. After trying out various settings, I contacted les.net and the confirmed that multiple accounts from the same IP address will get mixed up. Here's their response.

"Its the source (your) IP that is causing this matching issue.
Its not possible to have calls come from the same IP address and distinguish between identities."

Bizarre limitation. The asterisk box knows that there are two different accounts registered, and I assume it is routing correctly. So, is this a les.net problem? If their billing system is matching calls to ip addresses -- that seems crazy insecure.

:jason

On [25-Aug], at 12:11 AM, Claude Tambu wrote:

Account Code might help ... but from experience, I remember a couple of years ago Les.Net having issues with multiple accounts originating from the IP address (sic. same Asterisk box)

Try talking to Les and see if they've implemented a solution ...

________________________________________
From: Jason Moore [[email protected]]
Sent: August 24, 2009 10:50 PM
To: Asterisk User Group
Subject: [on-asterisk] multiple accounts with one SIP provider?

Hi,

I've configured asterisk to use multiple SIP providers - but I'm
having a tough time configuring multiple accounts with the same
provider. Both accounts register fine, but no matter what context I
use in dialing (SIP/one SIP/two) the calls are showing up in one of
the accounts CDR.

Is this a problem when the hostname and port are the same?

sip show registry
Host                            Username           Refresh
State            Reg.Time
did.voip.les.net:5060           19000              105
Registered           Mon, 24 Aug 2009 22:40:05
did.voip.les.net:5060           14000              105
Registered           Mon, 24 Aug 2009 22:40:05

The sip contexts are nothing special. Is there anything I'm missing to
help asterisk differentiate the two accounts?

[one_peer]
type=friend
username=19000
host=did.voip.les.net
dtmfmode=auto
insecure=very
disallow=all
allow=ulaw
context=one-incoming

[two_peer]
type=friend
username=14000
host=did.voip.les.net
dtmfmode=auto
insecure=very
disallow=all
allow=ulaw
context=two-incoming

Regards,

:jason


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to