Recently, I've install FreePBX and its hardwares to allow recording and (potentially, if I'm not too lazy enough) have a call-centre for future business.
I use Grandstream HT-813 for a FXO (converting PSTN from, idiotically, AIS VoIP landline service) and FXS with exisiting home telephone so I can make a call from my condominium.
However, even with configuration I follow Crosstalk Solution's video series and this tutorial and got both incoming and outgoing calls, I still can't record incoming caller ID.
Aside from the configuration from those tutorials, there're several configuration needed to be adjusts
-
1.1. Set Caller ID Transport Type to "Relay via SIP form" since using SIP header causing
pbx_functions.c: Function SIP_HEADER not registered
error. Althogh the error itself is harmless, FreePBX won't recognise caller ID.1.2. Set Number of Rings to at least 2 to make sure the ISP is complete their Caller ID relaying.
-
On FreePBX side: Go to Connectivity > Trunks > Trunk row > Edit Trunk > PJSIP settings > Advance
Change Match Inbound Authentication to Auth Username. Otherwise, when incoming call is sent via FXO, FreePBX will reject the call with
res_pjsip/pjsip_distributor.c: Request 'INVITE' from '<sip:[Incoming phone number]@[FXO IP]>' failed for '[FreePBX IP]:5062' (callid: [FreePBX Call ID]) - Failed to authenticate
.