Bug In Pjsip Trust_id_outpound?

Home » Asterisk Users » Bug In Pjsip Trust_id_outpound?
Asterisk Users 1 Comment

Hi Team

I’m still struggling to get privacy settings passed on correctly.

The Asterisk is sitting between customers and IC trunks.

On the customer face, of course I have those settings:

trust_id_inbound=yes trust_id_outbound=no

This ensures that presentation is set to probibited, if the customer is setting Privacy: ID. It also ensures that the From: header is set to anonymous, hiding the callerID if the caller requested presentations prohib.

So far, towards the customer side, this works as expected.

Towards the IC, we need to correctly populate the Request, From, P-Asserted Identity and Privacy header. Sending From: anonymous is not allowed.

So I set:

trust_id_inbound=no trust_id_outbound=yes

Unfortunately I have to set inbound trust to no, to make sure the Asterisk takes callerID from the From: header and NOT from the P-Asserted Identity Header.

I then call pull the Privacy: Header with PJSIP_HEADER and set caller presentation correctly.

But with outbound calls I am facing a HUGE problem.

I have set trust_id_outbound=yes. So I am expecting Asterisk to correctly set the From: header to CallerID(number) and if CallerID(num-pres) ist set to prohib, to add a Privacy: ID header.

This is not happening. From: is set to anonymous with missing Privacy:
header with the result, that the IC partner on the other side is blocking this call.

Any idea how I could deal with this? Why is trust_id_outbound=yes not behaving as expected?

Mit freundlichen Grüssen

-Benoît Panizzon-

I m p r o W a r e A G – Leiter Commerce Kunden

One thought on - Bug In Pjsip Trust_id_outpound?

  • Hi Gang

    If anyone else stumbles over the same Problem.

    This is how I solved it for now:

    On the IC Trunk:

    trust_id_inbound=no => Makes sure the CallerID is taken from the From Header. trust_id_outbound=yes => Does nothing useful, maybe a bug?
    send_pai=no

    On the incoming call, you have to pull the Privacy: header to figure out the callerid presentation as asterisk is not setting this value if you don’t trust id inbound.

    If the call is destined to a customer, you set CALLERPRES()=prohib which makes sure, the From header is anonymized towards the customer.

    If the call is destined to an IC, you have then to manually PJSIP_HEADER(add) a P-Assertied-Identity and a Privacy Header correctly setting the calling presentation. Asterisk is NOT doing this correctly.

    Mit freundlichen Grüssen

    -Benoît Panizzon-

    I m p r o W a r e A G – Leiter Commerce Kunden