MY ISP, Unifi- TM in Malaysia comes with triple play service, Internet, IPTV and Voice, where each service has its own VLAN.
My Rasberry Pi hosting FreePBX has 2 network interfaces. One of them is connected to the normal VLAN (500) where it is accessible from the local network whereas the other one is connected to a separate interface in the Mikrotik that is tagged under the Voice VLAN
I am using chansip to connect to my ISP VOIP Server. Below are my configurations
Although I don’t think it really explains your symptoms, please replace this by:
Also consider why you need G.729 and both variants of G.711, assuming that Malaysia aligns with Europe, rather than the USA and Japan, I’d suggest:
If you have no outbound audio, it is possible that you need nat=comedia (an explicit nat=no is almost never needed).
Generally it is helpful to have the full log resulting from the use of the CLI command “sip set debug on”, when diagnosing one way audio, as the SDP contents can be useful.
(type=friend is an unnecessary security risk. username is only relevant with host=dynamic It is better to have an explicit dtmfmode. The official name for canreinvite has been directmedia for a very long time. New installations should use chan_pjsip.)