Brekeke Forum Index » Brekeke PBX Forum

Post new topic   Reply to topic
Preserve specific SIP INVITE headers when setting up a call
Author Message
epascual
Brekeke Member


Joined: 03 Sep 2015
Posts: 22
Location: Spain

PostPosted: Thu Sep 10, 2015 1:03 am    Post subject: Preserve specific SIP INVITE headers when setting up a call Reply with quote

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


Joined: 11 Feb 2015
Posts: 97

PostPosted: Thu Sep 10, 2015 8:52 am    Post subject: Reply with quote

What kind of headers are they?

Are they always fixed values?
Back to top
View user's profile
epascual
Brekeke Member


Joined: 03 Sep 2015
Posts: 22
Location: Spain

PostPosted: Thu Sep 10, 2015 10:06 am    Post subject: Reply with quote

The two headers are "Subject" and "Priority". They are mandatory for Voice Control Systems in Air Traffic Control.
Back to top
View user's profile
snuyzm
Brekeke Talented


Joined: 11 Feb 2015
Posts: 97

PostPosted: Thu Sep 10, 2015 12:50 pm    Post subject: Reply with quote

Are they always fixed values?
Back to top
View user's profile
epascual
Brekeke Member


Joined: 03 Sep 2015
Posts: 22
Location: Spain

PostPosted: Fri Sep 11, 2015 3:38 am    Post subject: Reply with quote

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


Joined: 11 Feb 2015
Posts: 97

PostPosted: Fri Sep 11, 2015 11:05 am    Post subject: Reply with quote

wow nice!
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke PBX Forum All times are GMT - 7 Hours
Page 1 of 1