Include Header in every SIP message

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
epascual
Posts: 22
Joined: Thu Sep 03, 2015 2:31 am
Location: Spain

Include Header in every SIP message

Post by epascual »

1. Brekeke Product Name and Version:

BPX SIP Server Version 3.5.3.4

2. Java version:

1.7.0_85

3. OS type and the version:

CENTOS server 6.7

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:

My Brekeke PBX and SIP server is integrated in a VoIP network that require a header in every SIP message.
Is it possible including a header in every SIP message?
Is there a field in the PBX configuration or the SIP server configuration, or is there a environment variable where I could define headers that are included in every SIP message?

Thank you in advance.
redroof
Posts: 97
Joined: Fri Nov 16, 2007 1:46 pm

Post by redroof »

You can add any SIP header with Deploy Patterns.

For example:
[Deploy Patterns]
X-My-Header = my value


What kind of SIP header and value do you want to add in SIP packet?
epascual
Posts: 22
Joined: Thu Sep 03, 2015 2:31 am
Location: Spain

Post by epascual »

I want to add the Header "WG67-version=phone.01" in all SIP messages.
Can I add a rule in Dial Plan for all requests?
redroof
Posts: 97
Joined: Fri Nov 16, 2007 1:46 pm

Post by redroof »

Put this rule in the top of the DialPlan.
[Matching Patterns]
$request = ^INVITE

[Deploy Patterns]
WG67-version=phone.01
$continue = true
Post Reply