Actually I have no clue how to set it up…
I configured my firewall so that incomming traffic on a specific public IP is forwarded to the freepbx-server. I also took care that all outgoing traffic to the vodafone SBC is routed through the right public IP.
(so far so good).
Right now I have absolutely no idea what I should enter in my pjsip-trunk config…
I received the following data from vodafone:
I activated pjsip debug and I’m getting this messages:
There is one error " SIP/2.0 400 Bad Request" “Missing SDP rtpmap for dynamic payload type (PJMEDIA_SDP_EMISSINGRTPMAP)”
Any Idea whats wrong here?
I have an any / any inbound route but I don’t receive any signaling…
The SDP is indeed malformed. RTP Payload Type 96 is in the ‘dynamic’ range but there is no ‘a’ line to specify the codec. Based on the fmtp parameters, the line that is missing is probably: a=rtpmap:96 AMR-WB/16000
Vodafone likely supports AMR-WB, so calls from mobiles with VoLTE can connect in HD (wideband).
However, possibly Vodafone is sending valid SDP, but a SIP ALG in a router, firewall or SBC in the path is corrupting the packet. If your PBX is not directly on a public IP address, post what networking devices you have between internet and PBX.
Also, I’d expect pjsip to be robust enough to ignore the malformed PT 96 and just choose another codec. In your trunk settings, what do you have in pjsip General for Context? On an inbound call attempt, does the Asterisk log show that context being run? If so, post what gets logged.