header rewrite after re-invite

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
promero
Posts: 8
Joined: Thu Apr 18, 2013 9:27 am

header rewrite after re-invite

Post by promero »

1. Brekeke Product Name and Version:
Version 3.3.4.4 Standard
2. Java version:
7_51
3. OS type and the version:
Windows 2003 SP1
4. UA (phone), gateway or other hardware/software involved:
ITSP
5. Your problem:
Brekeke is B2BUA between softswitch and ITSP
Brekeke has local IP behind NAT
Brekeke is rewriting header info per ITSP req.

Issue is the TO: address in the header for the 200 OK SDP after a reinvite from the ITSP is not being rewritten according to dial plan.

In the initial invite it is. It is only after the reinvite 15 minutes into the call. The ITSP does not recognize the internal address and thus does not respond with the ACK.

Dial plan match
$request = ^INVITE
To = sip:(.+)@
From = sip:(.+)@

Deploy
From = sip:(.+)@ From = sip:%2@NATIP
$replaceuri = true
Contact = sip:%2@NATIP
$replaceuri = true
$ifdst = NATIP
To = sip:%1@ITSPIP
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

you may need session plug-in to modify the requests in the middle of a session
http://www.brekeke.com/support/sip_document.php
"Developer's Guide: Accounting Plug-in"
janP
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by janP »

Did you set NATIP in the [Configuration]->[System] page -> [Interface address 1] ?

Are you using B2B-UA mode?
promero
Posts: 8
Joined: Thu Apr 18, 2013 9:27 am

Post by promero »

Yes this is B2B-UA mode.
The Interface address 1 is blank
it is the TO: address in the 200 OK SDP message header that is not being re-written after a re-invite.
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

what happen if set b2bua off?
Post Reply