Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Manipulating SIP Fields in an INVITE
Author Message
JRayfield
Brekeke Guru


Joined: 03 Dec 2012
Posts: 147
Location: Springfield, MO

PostPosted: Tue Apr 05, 2022 4:44 pm    Post subject: Manipulating SIP Fields in an INVITE Reply with quote

1. Brekeke Product Name and Version:
SIP Server - Latest Version

2. Java version:
Latest compatible with BSS

3. OS type and the version:
Windows 10 Pro

4. UA (phone), gateway or other hardware/software involved:
3CX and Asterisk/FreePBX

5. Your problem:

I'm wondering if BSS can be used to 'manipulate' SIP field information between two PBXs that are connected to BSS.

Specifically, would it be possible to take an INVITE from PBX1, take the 'user part' of a Remote-Party-ID field and 're-write' a new From: field with this 'user part' information, and then pass the 'modified' INVITE on to PBX2?

For example:

From: field from PBX1 -

From: "14178874663"<sip:10011@192.168.1.181:5060>;tag=c80c9b7d

Remote-Party-ID field from PBX1 -

Remote-Party-ID: "14178874663"<sip:14178874663@wc911-3cx.mo.3cx.us:5060>;party=calling

New From: field, inserted into INVITE that is passed on to PBX2:

From: "14178874663"<sip:4178874663@192.168.1.181:5060>;tag=c80c9b7d

Is this possible with BSS?

_________________
John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net
Back to top
View user's profile
Tata
Brekeke Master Guru


Joined: 27 Jan 2008
Posts: 223

PostPosted: Thu Apr 07, 2022 6:57 pm    Post subject: Reply with quote

Yes, you can replace these SIP headers with DialPlan.

For example..
Matching Patterns
$request = ^INVITE
$getSIPuser(Remote-Party-ID) = 1(.+)
Deploy Patterns
From = sip:%1@192.168.1.181:5060
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