PJSIP Match Header

Good morning. I’m using asterisk 20.8.1.

A while ago I had to add match_header to my identify section for all my carriers because I have different sip accounts (same carrier) in the same PBX so I need to distinguish when an inbound call comes to an account or another, and for that.

That was working fine with match_header: To /{someusername}/ but unfortunately a new carrier is not sending the username or any identifier of the account in the TO header but in the Contact .

I wonder if someone has experienced some issues like that and have some ideas. For now I’m matching one with the header TO and the other with CONTACT.

Does match_header accept some kind of regex that would allow me to match different headers with one like of match_header. Something like match_header: [To|Contact]: /{user}/.

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