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:
Trunk Name: 11111111
Register String: 11111111:********@184.108.40.206:5060/11111111
The seconds trunk is configured as:
Trunk Name: 11111112
Register String: 11111112:********@220.127.116.11: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:
and have set the AOR Contact to be:
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.