Extension CID instead of trunk/route CID on the called party

Hello,

since ages I’ve renewed (complete new installation) my quite old freepbx system to Freepbx 17.
Since the source system was quite old (ver. 13.something) I didn’t transfer any settings and started from the scratch.
I also changed the trunk from chan_sip to chan_pjsip.
So far, so good.

The only issue I have is, that the extension CID doesn’t get transfered to the called phone. It is always the trunk numer displaed, even I haven’t it configured either at the trunk, nor at the oubound route.- the setting seems to come fromthe sipgate.de provider configuration.

I can see at the logs:

[2025-08-12 09:19:00] VERBOSE[341482][C-0000002a] pbx.c: Executing [s@macro-dialout-trunk:33] ExecIf("PJSIP/203-0000014e", "1?Set(CONNECTEDLINE(name,i)=CID:4922123456789)") in new stack
[2025-08-12 09:19:00] VERBOSE[341482][C-0000002a] pbx.c: Executing [s@macro-dialout-trunk:34] ExecIf("PJSIP/203-0000014e", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)4922123456789)") in new stack

But I’ve absolute no glue from where the 2nd line comes.
Any idea..?

figured out my own solution - tested with a German (sipgate.de) trunk.

Edit extensions_custom.conf and add:

[macro-dialout-trunk-predial-hook]
exten => s,1,Noop(Entering user defined context macro-dialout-trunk-predial-hook in extensions_custom.conf)
exten => s,n,GoSub(func-set-sipheader,s,1(P-Preferred-Identity,sip:${CALLERID(number)}@sipconnect.sipgate.de))
exten => s,n,return()

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