Author |
Message |
Endoo21 Brekeke Newbie
Joined: 29 Jan 2016 Posts: 2
|
Posted: Mon Feb 15, 2016 3:33 am Post subject: Problem from my dialplan |
|
|
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 |
|
Back to top |
|
Tata Brekeke Master Guru
Joined: 27 Jan 2008 Posts: 223
|
Posted: Mon Feb 15, 2016 11:46 am Post subject: |
|
|
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. |
|
Back to top |
|
Endoo21 Brekeke Newbie
Joined: 29 Jan 2016 Posts: 2
|
Posted: Mon Feb 15, 2016 9:42 pm Post subject: |
|
|
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. |
|
Back to top |
|
|