Forums Read-only archive

Manipulating SIP Fields in an INVITE

2 posts · Brekeke SIP Server Forum

JRayfield Original post
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?
Tata
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