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
Problem from my dialplan
Moderator: Brekeke Support Team
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.
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.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.
It's first time for use sip server system.