Hello to the community,
it’s my first post and i am new to freepbx.
Here is my issue. Is there anyone who can help to solve the problem?
I want to send a P-Preferred-Identity Header in an pjsip-trunk to sipgate because of sending the CID which is in the extensions.
After reading in this forum i changed the extensions_custom.conf to:
[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,MacroExit
After talking to sipgate and looking to the log sipgate get this information:
INVITE
P-Preferred-Identity:sip:4921178178985419@sipconnect.sipgate.de: 0170XXXXXX
What do i have to change, so that this part (0170XXXXXX) will not be submitted to sipgate?
“0170XXXXXX” → this is the number that i want to talk to.
Hope you could understand.
Thanks for your help.
1 post - 1 participant