Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itpcc/01fd76fbe4995402a3558522811d3176 to your computer and use it in GitHub Desktop.
Save itpcc/01fd76fbe4995402a3558522811d3176 to your computer and use it in GitHub Desktop.
How to configure incoming caller ID for Grandstream HT-813 to FreePBX16

Why?

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.

How?

Aside from the configuration from those tutorials, there're several configuration needed to be adjusts

  1. On FXO side: image

    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.

  2. On FreePBX side: Go to Connectivity > Trunks > Trunk row > Edit Trunk > PJSIP settings > Advance

    image

    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.

Result?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment