SIP Trunk Error 502 Bad Gateway

I have problem with the sip trunk here is the error i`m getting for outbound calls. I can receive calls without any problem but i cant make calls. Is it problem with the provider configure or this is problem with the sip settings?

SIP/2.0 502 Bad Gateway
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5160;branch=z9hG4bK6129e785;rport
To: sip:[email protected]:5060
From: sip:[email protected]:5160;tag=as368628f1
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: ENSR3.0.66.43-IS1
Content-Length: 0

PEER Details:

type=friend
username=user
fromdomain=provideraddress.com
realm=provideraddress.com
host=provideraddress.com
port=XXXX
dtmfmode=rfc2833
secret=password
nat=yes
canreinvite=no
insecure=invite,port
qualify=yes
disallow=all
allow=ulaw&alaw
amaflags=default
trustrpid=no
sendrpid=yes&pai
context=from-pstn

Register string
username:[email protected]:port/username

You show 11 digits in the To header, but I believe that MNF expects 10 digits for a domestic call, e.g. 02 7123 4567 for Sydney. The number in the from header must be a DID you have with them, also expressed as 10 digits. If you are using an account number or username, I believe that is incorrect. Also, try without the RPID/PAI headers, as MNF does not show them in their sample configs. See https://www.mynetfone.com.au/media/support/downloads/asterisk/config/MyNetFone_SIP_Setup_on_Asterisk_FreePBX.pdf .

If you still have trouble, call MNF support – they may have changed some requirement after the guide was published.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.