I am pulling my hair out on this one…
I have spend hours trying to get this to work.
Have a vodafone sip trunk…
Settings are
|Username| sip049094445
|Password| Do3XXXXX|
|Domain| entvoice.vodafone.co.uk|
|Proxy| 23b.Z5.srtp.entvoice.vodafone.co.uk|
Phone numbers assigned to this trunk are 02074642570 to 9
Now the domain does not DNS resolve. nor does it have any srv records.
Now 23b proxy does have a srv record.
They require tls and gave me a TLS cert to use.
Can someone please send me a sample PJSIP.conf file that should work with these settings.
Any help is much appreciated.
FYI… I have TLS working on my asterisk server with softphones with no issues.
This forum works best if you provide your initial attempt and any error messages. For one thing, it is easy to forget something when trying to create a configuration which can’t be tested.
You need to start with disallow=all, or there can be problems.
Also, you seem to be in London, England, but the UK and European PSTN systems use A-law.
I think you need the proxy in the type=aor section, as well.
I don’t think you ever want to send the account name in the request URI; it should be the destination phone number, so drop the whole user part.
These are the wrong way round.
If I understand this, this should be ca_list_file and should be in the type=transport section (or use the ca_cert_path mechanism). I’m not sure it will actually be used unless you have the relevant verify_{client|server} setting, but I’m not sure exactly what verification these enable.
You need to define this transport. You also need to include any settings as the result of running behind NAT in that section.
I may have missed something, so please provide logging after any failure.