Problem from my dialplan

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
Endoo21
Posts: 2
Joined: Fri Jan 29, 2016 9:15 pm

Problem from my dialplan

Post by Endoo21 »

1. Brekeke Product Name and Version:3.5.3.0

2. Java version:6

3. OS type and the version:windows server 2012

4. UA (phone), gateway or other hardware/software involved:spa502g , soundwin s800

5. Your problem: I have problem for my dialplan if I put this dialplan :

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

Deploy Patterns
To = sip:%1@192.168.0.9

I can call out from my gateway(call to mobile phone) but can't call back to ip phone.

If I put this dialplan :

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

Deploy Patterns
To = sip:%1@

I can call to ip phone from my gateway but can't call out.

I don't know it's have something wrong? Please help me.

Thank you,
Wat
Tata
Posts: 223
Joined: Sun Jan 27, 2008 1:03 pm

Post by Tata »

I suppose you got a loop with 192.168.0.9 because you didn't filter the remote IP address in the Matching Patterns.

Your first rule will match any INVITE including a call sent back from 192.168.0.9.

Put the $addr in the first rule as the following.
Matching Patterns
$request = ^INVITE
$addr = !192.168.0.9
To = sip:(.+)@

Deploy Patterns
To = sip:%1@192.168.0.9

You need to have ! in the front of the IP address.
$addr = ! 192.168.0.9 means "NOT sent from 192.168.0.9". It avoid a loop.


Furthermore you don't need a second DialPlan rule because the SIP Server automatically routes an INVITE if a destination is a registered SIP UA.
Endoo21
Posts: 2
Joined: Fri Jan 29, 2016 9:15 pm

Post by Endoo21 »

Tata wrote:I suppose you got a loop with 192.168.0.9 because you didn't filter the remote IP address in the Matching Patterns.

Your first rule will match any INVITE including a call sent back from 192.168.0.9.

Put the $addr in the first rule as the following.
Matching Patterns
$request = ^INVITE
$addr = !192.168.0.9
To = sip:(.+)@

Deploy Patterns
To = sip:%1@192.168.0.9

You need to have ! in the front of the IP address.
$addr = ! 192.168.0.9 means "NOT sent from 192.168.0.9". It avoid a loop.


Furthermore you don't need a second DialPlan rule because the SIP Server automatically routes an INVITE if a destination is a registered SIP UA.
Oh! Thank you very much Tata.
It's first time for use sip server system.
Post Reply