Change Diversion Header on Follow-Me from tel:XXX to sip:[email protected] on FreePBX 10.13.66-16

Hi there,

according to this Diversion Header problem: change <tel:> to <sip:> (solved) I’ve tried to add exten => s,n,SIPAddHeader(Diversion: <sip:FROM_DID;reason=${DIVERSION_REASON};screen=no;privacy=off) to my /etc/asterisk/extensions_custom.conf.

After applying this change, FreePBX shows the following:

[2018-03-14 09:20:36] WARNING[24423] pbx.c: Context 'sub-diversion-header' tries to include nonexistent context 'sub-diversion-header-custom'

I’ve read that this is normal, if the included file doesn’t exist but where do I find these diversion header files in the config files ? I’ve searched them but no success on ‘sub-diversion-header’.

After testing if the FPBX uses sip instead of tel in the header, I get the following error:
No closing parenthesis found? 'SIPAddHeader(Diversion: <sip:FROM_DID' at line 1 of /etc/asterisk/extensions_custom.conf

I’m a little helpless here.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.