i hope someone can point me in the right direction. I have a good old one way Audio Problem. Before you say “Nah, another dude who doesn’t know anything about NAT and Firewall” let me describe the situation:
Customer has a remote office where the Phones are located (Yealink VP59)and they have a cloud FreePBX (16.0.40.4). There are 2 external SIP Trunks registered. So far so good, everything is working as expected, in and outgoing Calls are working in both directions, they can call themselves internally and do not have any issues at all.
But when thy want to pick a call from a co-worker or they want to forward the call to another person the audio from the caller gets lost.
The Firewall infront of the PBX is a opnsense where all relevant Ports a forwarded, SIP and RTP. I adjusted the RTP Port Range in Freepbx to match the rules on the firewall, so there are around 500 UDP Ports opened.
Here is a log with “pjsip set logger on” where i changed the following:
1.2.3.4 > Public IP of the PBX
5.6.7.8 > Public IP of the SIP Trunk Registrar
siptrunk > dns name of the siptrunk
0152XXXXXXXX > Calling Number
4921XXXXXXXX > Target Number
The called extension is the 100 and the call was forwarded to the extension 150.
When 100 accepts the Call, audio is 2 ways but when the Call gets forwarded to 150 (attended and unattended) the Aduio from the Caller gets lost. And i am looking at the logs and can’t see the error.
Have you run a tcpdump on the console? That might narrow down where the problem is occurring.
tcpdump -w dumpfile.pcap
Run your test and then Ctrl-c will stop the capture and create the pcap file.
Then pull that file using winscp or other file transfer software, and load it into Wireshark. Wireshark has tools that allow you to listen to the audio by channel and determine if the audio is even leaving the FreePBX.
Not all that familiar with Yealink, but I suspect that the offending phone may have a similar pcap capture procedure on the phone end as well.
Do you have direct media path turned on for that phone? Try toggling that value. Don’t have one in front of me at the moment, but I think it’s in the extension’s advanced tab of not the main page.
Well thanks for the answer. Direct Media was indeed turned off. Turned it on and it made no difference.
I made the pcap File but i do not have any knowledge about Wireshark or Tracing in general. What should i do the mark down the error / the misconfiguration?
Just to be clear again:
A normal Call is working fine, i am only talking about redirected or picked Calls where i have this one way audio issue.
When something is picked, it looks like this: