DIALPLAN

Discuss any topic about <A href="http://www.brekeke.com/telephony/">Brekeke JTAPI SDK</A>.

Moderator: Brekeke Support Team

Locked
obini
Posts: 15
Joined: Mon Jan 21, 2008 8:57 am
Location: italy

DIALPLAN

Post by obini »

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
Mohney
Posts: 79
Joined: Tue Nov 20, 2007 12:05 pm

Post by Mohney »

Do you want to insert Contact header with the caller's IP address?
obini
Posts: 15
Joined: Mon Jan 21, 2008 8:57 am
Location: italy

Post by obini »

yes
Mohney
Posts: 79
Joined: Tue Nov 20, 2007 12:05 pm

Post by Mohney »

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
----
obini
Posts: 15
Joined: Mon Jan 21, 2008 8:57 am
Location: italy

Post by obini »

it's perfect many thanks

Omar :D
obini
Posts: 15
Joined: Mon Jan 21, 2008 8:57 am
Location: italy

Post by obini »

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
Mohney
Posts: 79
Joined: Tue Nov 20, 2007 12:05 pm

Post by Mohney »

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.
obini
Posts: 15
Joined: Mon Jan 21, 2008 8:57 am
Location: italy

Post by obini »

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
Locked