Hello all !
Sipgate wants the P-prefred-Identity header in order to show the CID on an outgoing call.
We have two freepbx installations. One is online (we call it “pbxonline”) and one is local at our office (we call it “pbxoffice”).
pbxonline has a pjsip trunk to sipgate (“sipgatepjsip”). Calls from and to the outside are shipped through sipgate.
pbxonline has several pjsip extensions for our external employees (working from home).
pbxoffice has several sip extensions for the office workers.
The two installations pbxonline and pbxoffice are linked by an IAX2 trunk.
In order to set the CID by indicating it in the P-prefred-Identity header as requested by Sipgate we followed these instructions:
When an extension on the pbxonline installation places a call to the outside it is routed by an outgoing route (“sipgate_out”) to the sipgate trunk (“sipgatepjsip”) which has “Asterisk Trunk Dial Options” set to "B(custom-sip-header^s^1)" as indicated in the mentioned instructions. This works fine meaning that the extenion’s Outbound CID is shown to the called party by Sipgate!
BUT now comes the problem:
If a call is placed by an extension on the pbxoffice installation, the outgoing call is first routed by an outgoing route (“pbxonline_out”) to the aix2 trunk (“pbxonline”). Arriving at the pbxonline installation the call is routed by an inbound route (DID: Any, CID: Any) to the trunk sipgatepjsip (don’t know if this is proper ?!). For some reason those calls are not provided with the P-prefred-Identity header. And therefore the Outbound CID set by the calling extension on the pbxoffice installation is not shown by Sipgate.
I must admit that I am not that firm in asterisk and in general in voip principles. And I would be very thankful if someone could help me to get this fixed. Thanks !