Hi
I’m looking to implement any new providers using PJSIP.
I have several trunks from a single provider. In the case at hand, I’m trying to get three trunks working - but this equally applies if you are trying to get two trunks going to the same provider.
Using chan_sip this works with the following configuration:
Outgoing
Trunk Name: 11111111
Peer Details:
username=11111111
type=peer
sendrpid=pai
secret=********
qualify=yes
port=5060
host=123.123.123.123
fromuser=11111111
dtmfmode=inband
disallow=all
context=from-trunk
allow=alaw&ulaw
Inbound
Register String: 11111111:********@123.123.123.123:5060/11111111
The seconds trunk is configured as:
Outgoing
Trunk Name: 11111112
Peer Details:
username=11111112
type=peer
sendrpid=pai
secret=********
qualify=yes
port=5061
host=123.123.123.123
fromuser=11111112
dtmfmode=inband
disallow=all
context=from-trunk
allow=alaw&ulaw
Inbound
Register String: 11111112:********@123.123.123.123:5061/11111112
In summary, they are:
- all registered to the same IP Address
- Each registration is to a unique port
This works well, with no issues…
However when migrating to PJSIP, I have tried various approaches; but all inbound calls appear to hit the last registered number…
Within each of the PJSIP trunks I have tried to set the Server and Client URL to be:
- sip:[email protected]:5060
- sip:[email protected]:5061
and have set the AOR Contact to be:
- sip:123.123.123.123:5060
- sip:123.123.123.123:5061
But to date, all changes have had the same result - the inbound call appears on the last trunk to register against our provider.
Ive also tried changing the endpoint identifier order to:
endpoint_identifier_order = auth_username,username,ip,anonymous
However, same result.
Any ideas?
Cheers