Category Archives: FreePBX

Restart freeNAS gui from CLI

login to freeNAS via ssh and enter commands: /usr/local/etc/rc.d/nginx restart /usr/local/etc/rc.d/django restart    

Posted in freeNAS, FreePBX | Leave a comment

extract DID from SIP header

Some providers put the DID in the TO: field. To extract DID form SIP header use new context: [from-pstn-toheader] exten => s,1,Goto(from-pstn,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1) and in incoming trunk set context=from-pstn-toheader

Posted in Asterisk, FreePBX | Tagged , , | Leave a comment