Edit Request URI of Incoming INVITE by Dial Plan

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
alviet
Posts: 2
Joined: Mon Jul 08, 2013 11:09 pm
Location: Vietnam

Edit Request URI of Incoming INVITE by Dial Plan

Post by alviet »

1. Brekeke Product Name and Version:
brekeke sip server 3.1.7.8/348.2
2. Java version:
1.7.0_21
3. OS type and the version:
Windows
4. UA (phone), gateway or other hardware/software involved:

5. Your problem:
I want to edit Request Line
Incoming INVITE message:
===========================
INVITE sip:123.30.92.6 SIP/2.0
.....
To: <sip:1000@123.30.92.6>
.....
===========================

-> Deployed:
===========================
INVITE sip:1000@123.30.92.6 SIP/2.0
...
To: <sip:1000@123.30.92.6>
...
===========================

Can dial plan of Brekeke Sip Server help me out?
VoIP
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

Use the $request in Deploy Pattern.

Refer the page 77 in the document.
http://www.brekeke.com/doc/sip/sip_admin_v3.pdf
alviet
Posts: 2
Joined: Mon Jul 08, 2013 11:09 pm
Location: Vietnam

Post by alviet »

Thanks Tata. Refer your documents I tried like below, but failed. Can you take a look.

Matching Patterns
$request URI $request = ^INVITE
$getUri(To) = sip:(\d*)
[/b]

Deploy Patterns
$request = INVITE sip:%1@116.118.110.91 SIP/2.0

Phenomenon:
Incoming message does not changed.
VoIP
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

Try this..

[Matching Patterns]
$request = ^INVITE
$getUri(To) = sip:(.+)@

[Deploy Patterns]
$request = INVITE sip:%1@116.118.110.91 SIP/2.0
Post Reply