Hi there,
I am quite new to Asterisk, setting up my first system. I am trying to make a PBX on our network with asterisk on an Ubuntu18 vm.
Internal calling and inbound calls go just fine.
However, when attempting to make an outbound call I first get a 100 trying and then a 403 forbidden.
My configuration is basically the sample config from https://wiki.asterisk.org/wiki/display/AST/res_pjsip+Configuration+Examples (no.2)
<--- Transmitting SIP request (901 bytes) to UDP:[myprovider]:5060 --->
INVITE sip:[mobilephone]@sip.myprovider.com:5060 SIP/2.0
Via: SIP/2.0/UDP [myip]:5060;rport;branch=z9hG4bKPjTCmUWug.r6T.8eq.0d4NuM4QyegnESSy
From: "[deskphone]" <sip:[localnumber]@192.168.1.3>;tag=jHA.w0JCu.Lvs42HI7HRxs6nuZKvBZX3
To: <sip:[mobilephone]@sip.myprovider.com>
Contact: <sip:asterisk@[myip]:5060>
Call-ID: ctrsg83gzndDSt9le.4dmtoHVXeABVfW
CSeq: 1121 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 14.7.8
Content-Type: application/sdp
Content-Length: 233
v=0
o=- 861016884 861016884 IN IP4 192.168.1.3
s=Asterisk
c=IN IP4 [myip]
t=0 0
m=audio 28794 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
<--- Received SIP response (323 bytes) from UDP:[myprovider]:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP [myip]:5060;received=[myip];branch=z9hG4bKPjTCmUWug.r6T.8eq.0d4NuM4QyegnESSy;rport=5060
From: "deskphone" <sip:[localnumber]@192.168.1.3>;tag=jHA.w0JCu.Lvs42HI7HRxs6nuZKvBZX3
To: <sip:[mobilephone]@sip.myprovider.com>
Call-ID: ctrsg83gzndDSt9le.4dmtoHVXeABVfW
CSeq: 1121 INVITE
<--- Received SIP response (354 bytes) from UDP:[myprovider]:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP [myip]:5060;received=[myip];branch=z9hG4bKPjTCmUWug.r6T.8eq.0d4NuM4QyegnESSy;rport=5060
From: "deskphone" <sip:[localnumber]@192.168.1.3>;tag=jHA.w0JCu.Lvs42HI7HRxs6nuZKvBZX3
To: <sip:[mobilephone]@sip.myprovider.com>;tag=aprqngfrt-t9ns203000126
Call-ID: ctrsg83gzndDSt9le.4dmtoHVXeABVfW
CSeq: 1121 INVITE