CUSTOM P-Preferred-Identity

I need to input the P-Preferred-Identity: sip:[email protected];user=phone;AAA5XSHNBBB os sip header of outgoing call from vital extension to public sip provider.

I already try to add file:

root@pbx:/etc/asterisk/vitalpbx# cat extensions__50-custom_ppi.conf
[custom-add-ppi-header]
exten => _X.,1,NoOp(Adicionando P-Preferred-Identity para ${EXTEN})
exten => _X.,n,SIPAddHeader(P-Preferred-Identity: sip:[email protected];user=phone;AAA5XSHNBBB)
exten => _X.,n,Goto(${CONTEXT},${EXTEN},${PRIORITY}+1)

And create an Custom Contexts + Custom Aplications (with personal code) to use the custom contexts and force add P-Preferred-Identity.

For now, no success.

Hey, edit the trunk and go to Tab Advanced.
Hope this helps

Hi Mo, as your tip it´s works, but when I use ; (semicolon) the header (P-Preferred-Identity: sip:[email protected];user=phone;AAA5XSHNBBB) is not shown.

If I change ; (semicolon) for another character (, comma as example or another simbol) it works, but is not the right sentence for P-Preferred-Identity.

I think that is an bug. I´ll open a vital support ticket.
Thank you.

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