Set DID Number from CallerID Name

Hello everyone,
I’m currently facing the problem that my trunk is sending the ‘DID Number’ as the ‘CallerID Name’. Is there any known way of changing this in FreePBX internally?

Thanks for your help!

A single line like this in the trunk context could do it:

exten => _X.,1,Goto(from-trunk,CALLERID(name),1)

It’s a weird arrangement. Why is your provider doing it this way?

Thank you! It actually needed masking of the variable, but here’s the result:

  1. Send calls from trunk to context ‘from-pstn-custom’.
  2. Add this to ‘extensions_custom.conf’:
exten => _X.,1,Set(DID=${CALLERID(name)})
exten => _X.,2,Set(CALLERID(name)='')
exten => _X.,3,Goto(from-trunk,${DID},1)

My provider sells this as an upgrade. But why should I pay for what I can just change permanently with a few lines of code?

1 Like

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