Erwin Bierens

Knowledge is Power

Direct Routing keeps sending Anonymous

2020-10-05 1 min read Microsoft Teams


While i was configuring an Audiocdes SBC with Direct Routing setup and started testing, we faced the issue that every call outgoing is presenting Anonymous as caller ID.


When looking up the SDP invite i saw the parameter Privacy showing up. Privacy ID


After some digging, i found that the Privacy ID is added automatically when you enable the option -forwardPAI $true (P-Asserted-Identity) within the Set-CsOnlinePSTNGateway cmdlet.

Because i don’t want to remove the PAI, i created the following manipulation rule in the Audiocodes SBC to remove the Privacy ID. Action Subject:


Action Type:


Manipulation rule

Make sure to set the Manipulation Set ID to your outgoing SIP provider IP Group.


Here in the Netherlands anonymous numbers are not used very much. In case you still want to use the anonymous caller function you can add the following condition. The removal will now only be active when anonymous is not presented in the From URL.


    Header.From.URL !contains 'anonymous'

Condition Rule

Thanks to Chris @weakestlync for this improvement.


comments powered by Disqus