1. Brekeke Product Name and version:SIP SERVER 2.1.6.2
2. Java version:
3. OS type and the version:WINDOWS
4. UA (phone), gateway or other hardware/software involved:
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :
6. Your problem:HI i need to take the FROM-IP(any) from the incoming side of the calls and put it in the contact ip to the outgoing side of the calls, this is the dial plan that i have now , can you help me to add this issue?
MATCHING PATTERNS
$request=INVITE
To=sip:(3.+)@
DEPLOY PATTERNS
To=sip:39%1@192.168.1.10
DIALPLAN
Moderator: Brekeke Support Team
Hi obini,
Try this.
---
MATCHING PATTERNS
$request = INVITE
To = sip:(3.+)@
DEPLOY PATTERNS
To = sip:39%1@192.168.1.10
&net.sip.replacecontact = false
&net.sip.replacecontact.nat = false
----
-OR-
---
MATCHING PATTERNS
$request = INVITE
To = sip:(3.+)@
$addr = (.+)
DEPLOY PATTERNS
To = sip:39%1@192.168.1.10
Contact = %2
----
Try this.
---
MATCHING PATTERNS
$request = INVITE
To = sip:(3.+)@
DEPLOY PATTERNS
To = sip:39%1@192.168.1.10
&net.sip.replacecontact = false
&net.sip.replacecontact.nat = false
----
-OR-
---
MATCHING PATTERNS
$request = INVITE
To = sip:(3.+)@
$addr = (.+)
DEPLOY PATTERNS
To = sip:39%1@192.168.1.10
Contact = %2
----
Hi
in effect the first dial-plan is ok , but sometime happen that in the contact url there is a private ip (i think that depend on type of nat or if i use to register the internal or external ip) and for me is a problem, is possible change the contact with the field " requester" that i see in the registered clients or the field "from ip" that i see in the active session?
many thanks
in effect the first dial-plan is ok , but sometime happen that in the contact url there is a private ip (i think that depend on type of nat or if i use to register the internal or external ip) and for me is a problem, is possible change the contact with the field " requester" that i see in the registered clients or the field "from ip" that i see in the active session?
many thanks
Did you try the second DialPlan rule I suggested?
$addr means "from ip"..
Here is another DialPlan rule... it will use "requester" field.
-----------
MATCHING PATTERNS
$request = INVITE
To = sip:(3.+)@
$regaddr( From ) = (.+)
DEPLOY PATTERNS
To = sip:39%1@192.168.1.10
Contact = %2
-----------
Let you try.
$addr means "from ip"..
Here is another DialPlan rule... it will use "requester" field.
-----------
MATCHING PATTERNS
$request = INVITE
To = sip:(3.+)@
$regaddr( From ) = (.+)
DEPLOY PATTERNS
To = sip:39%1@192.168.1.10
Contact = %2
-----------
Let you try.
ok i try everything and i discover mi solution that is a mix of the first 2 that you send me
MATCHING PATTERNS
$request = INVITE
To = sip:(3.+)@
$addr = (.+)
DEPLOY PATTERNS
To = sip:39%1@192.168.1.10
Contact = %2
&net.sip.replacecontact.nat = false
&net.sip.replacecontact = false
many thanks again
Omar
MATCHING PATTERNS
$request = INVITE
To = sip:(3.+)@
$addr = (.+)
DEPLOY PATTERNS
To = sip:39%1@192.168.1.10
Contact = %2
&net.sip.replacecontact.nat = false
&net.sip.replacecontact = false
many thanks again
Omar