Preserve specific SIP INVITE headers when setting up a call

Discuss any topic about Brekeke PBX.

Moderator: Brekeke Support Team

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

Preserve specific SIP INVITE headers when setting up a call

Post by epascual »

1. Brekeke Product Name and Version:
Brekeke PBX, Version 3.5.1.6, Pro
2. Java version:

3. OS type and the version:

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

5. Your problem:

In my Voice Control System two specific headers are mandatory to be added in SIP INVITE method. But I could see that the PBX removes them. Is there a way the PBX not to do it?
snuyzm
Posts: 97
Joined: Wed Feb 11, 2015 10:12 pm

Post by snuyzm »

What kind of headers are they?

Are they always fixed values?
epascual
Posts: 22
Joined: Thu Sep 03, 2015 2:31 am
Location: Spain

Post by epascual »

The two headers are "Subject" and "Priority". They are mandatory for Voice Control Systems in Air Traffic Control.
snuyzm
Posts: 97
Joined: Wed Feb 11, 2015 10:12 pm

Post by snuyzm »

Are they always fixed values?
epascual
Posts: 22
Joined: Thu Sep 03, 2015 2:31 am
Location: Spain

Post by epascual »

I asked Brekeke Support Team and they answered:
It works fine.

You can create ARS route at [PBX]->[ARS].
Create a new route, and set like below,
- Patterns IN-----
[Matching Patterns]
To: <needs proper pattern>
From: <needs proper pattern>
Plugin 1: sipheader
Param 1: Subject
Return 1: (.+)

Plugin 2: sipheader
Param 2: Priority
Return 2: (.+)

[Deploy Patterns]
Custom: &caller.header.subject=&p1,&caller.header.priority=&q1

-- Patterns OUT-------
[Matching Patterns]
To: <needs proper pattern>
From: <needs proper pattern>

[Deploy Patterns]
Custom: Subject=&caller.header.subject,Priority=&caller.header.priority
snuyzm
Posts: 97
Joined: Wed Feb 11, 2015 10:12 pm

Post by snuyzm »

wow nice!
Post Reply