Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Include Header in every SIP message
Author Message
epascual
Brekeke Member


Joined: 03 Sep 2015
Posts: 22
Location: Spain

PostPosted: Mon Dec 19, 2016 1:49 am    Post subject: Include Header in every SIP message Reply with quote

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.
Back to top
View user's profile
redroof
Brekeke Talented


Joined: 16 Nov 2007
Posts: 97

PostPosted: Mon Dec 19, 2016 11:59 am    Post subject: Reply with quote

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?
Back to top
View user's profile
epascual
Brekeke Member


Joined: 03 Sep 2015
Posts: 22
Location: Spain

PostPosted: Tue Dec 20, 2016 3:39 am    Post subject: Reply with quote

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?
Back to top
View user's profile
redroof
Brekeke Talented


Joined: 16 Nov 2007
Posts: 97

PostPosted: Tue Dec 20, 2016 11:10 am    Post subject: Reply with quote

Put this rule in the top of the DialPlan.
Matching Patterns
$request = ^INVITE
Deploy Patterns
WG67-version = phone.01
$continue = true
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1