Author |
Message |
epascual Brekeke Member
Joined: 03 Sep 2015 Posts: 22
Location: Spain
|
Posted: Thu Sep 10, 2015 1:03 am Post subject: Preserve specific SIP INVITE headers when setting up a call |
|
|
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 |
|
snuyzm Brekeke Talented
Joined: 11 Feb 2015 Posts: 97
|
Posted: Thu Sep 10, 2015 8:52 am Post subject: |
|
|
What kind of headers are they?
Are they always fixed values? |
|
Back to top |
|
epascual Brekeke Member
Joined: 03 Sep 2015 Posts: 22
Location: Spain
|
Posted: Thu Sep 10, 2015 10:06 am Post subject: |
|
|
The two headers are "Subject" and "Priority". They are mandatory for Voice Control Systems in Air Traffic Control. |
|
Back to top |
|
snuyzm Brekeke Talented
Joined: 11 Feb 2015 Posts: 97
|
Posted: Thu Sep 10, 2015 12:50 pm Post subject: |
|
|
Are they always fixed values? |
|
Back to top |
|
epascual Brekeke Member
Joined: 03 Sep 2015 Posts: 22
Location: Spain
|
Posted: Fri Sep 11, 2015 3:38 am Post subject: |
|
|
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 |
|
snuyzm Brekeke Talented
Joined: 11 Feb 2015 Posts: 97
|
Posted: Fri Sep 11, 2015 11:05 am Post subject: |
|
|
wow nice! |
|
Back to top |
|
|