Iam so close to fix outgoing call from Asterisk 18 to Trunk with pjsip.conf.
IP in Contact is wrong 83.17*.., should been: 217.28*..
Someone have a good ide?
This is not a valid private network number. If you are doing NAT between two different public addresses, you can expect problems.
I can’t be sure from the obfuscation,m but real local nets should be networks, i.e. they should have non-trivial netmasks, not the implied 255.255.255.255 if it is the same as your IP address.
Please properly describe your network topology, which seems to be unusual and non-trivial.
The reason it is using the 83 adedress is that the ITSP address cannot be within your localnet, because your localnet only contains one address and that address already taken up for what you call your IP address.
It’s probably doable, but I still don’t understand your configuration, and you still seem to be using “local” in a strange way.
At a guess, you have what I call a broken multi-homed configuration (multiple IP addresses, but no border gateway protocol and autonomous system number). I believe that chan_pjsip can normally cope with that, as it allows multiple transports, each with their own IP address. However I’m not at all convinced that I’ve really undestood what you are doing.
I’m not convinced I did the right thing.
You can call in, hear sounds prompting but can not call out.
So something works anyway but I do not know at all how to proceed …