Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
How strip * and # from dialing number
Author Message
soylo
Brekeke Talented


Joined: 30 Mar 2005
Posts: 59

PostPosted: Sat Sep 26, 2009 1:18 am    Post subject: How strip * and # from dialing number Reply with quote

1. Brekeke Product Name and version:
2.3.7.4

2. Java version:
1.5.0_12
3. OS type and the version:
Windows 2003 standar

4. UA (phone), gateway or other hardware/software involved:
xlite
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html : pattern 4

6. Your problem:
calling From Xlite I dial number for example 413*3056 or *12344 or #678234 or 444#1234.

How is the dialplan to block with special characters?

The problems is that the web adminstration of BSS is down for few minutes when BSS receive those calls.

Calls to normal telephone number (i.e. numbers) works very well.
I am using BSS with RadiusCat.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Sep 29, 2009 9:45 am    Post subject: Reply with quote

create two dialplan in the order below:
1.
matching:
$request = ^INVITE
To = sip:([0-9]+)@

Deploy:
To = sip:%1@

2.
matching:
$request = ^INVITE

Deploy:
$action=603
Back to top
View user's profile
soylo
Brekeke Talented


Joined: 30 Mar 2005
Posts: 59

PostPosted: Tue Sep 29, 2009 10:24 am    Post subject: Reply with quote

thanks for your answer,

my dialplan begin (first line) with this:

Matching Patterns
$request = ^INVITE
Deploy Patterns
$session = com.sample.radius.proxy.RadiusAcct
$continue = true

and I have create the 2 dialplan like you said me, but always sip server send to radius dialing number with * and #
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Sep 29, 2009 1:06 pm    Post subject: Reply with quote

change your first dial plan as
Matching Patterns
$request = ^INVITE
To = sip:([0-9]+)@
Deploy Patterns
$session = com.sample.radius.proxy.RadiusAcct
$continue = true
Back to top
View user's profile
soylo
Brekeke Talented


Joined: 30 Mar 2005
Posts: 59

PostPosted: Tue Sep 29, 2009 1:41 pm    Post subject: Reply with quote

I change dialplan like you say but No work. The BSS keep on sending invite to radiuscat the dialing number like *421234
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Sep 30, 2009 10:06 am    Post subject: Reply with quote

did you click apply rules button after changing dialplan?
Is there any other dial plan the call may apply?
Back to top
View user's profile
soylo
Brekeke Talented


Joined: 30 Mar 2005
Posts: 59

PostPosted: Thu Oct 01, 2009 11:17 pm    Post subject: block * and # Reply with quote

Yes, I made apply before test, but, No work keep on pass *12345 and sip web administration get too slow and shows messege NO RESPONSE FROM SIP.

My dialplan is:

Match 1
$request=^INVITE
To:([0-9]+)@

Deploy1
$session=com.sample.radius.proxy.RadiusAcct
$continue=true

Match2
$request=^INVITE
From=sip:180014@

Deploy2
$rtp=off
$nat=off
$continue=true

Match3
$request=^INVITE
To=sip:(5119)(94[012]|98[13]|982[2-9]|800[012]|81[0-5])(.+)@

Deply3
To=sip:000%1%2%3@10.10.0.203
&net.sip.timeout.inviting=30000

I tried else this:

Match1
$request=^INVITE
To=sip:([\*\#].+)@

Deploy1
$action=480
$continue=false

Match2
$request=^INVITE
To:([0-9]+)@

Deploy2
$session=com.sample.radius.proxy.RadiusAcct
$continue=true

Match3
$request=^INVITE
From=sip:180014@

Deploy3
$rtp=off
$nat=off
$continue=true

Match4
$request=^INVITE
To=sip:(5119)(94[012]|98[13]|982[2-9]|800[012]|81[0-5])(.+)@

Deply4
To=sip:000%1%2%3@10.10.0.203
&net.sip.timeout.inviting=30000

No work. the dialing number keep on pass to BSS to radiuscat. Other thinks is the call to *12345 doesn't register in CDR Call log.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Mon Oct 05, 2009 4:50 pm    Post subject: Reply with quote

please try to disable all other dial plans except the followings:
click [apply rules] button after changing

dial plan 1: priority 1

Match1
$request=^INVITE
To=sip:([\*\#].+)@

Deploy1
$action=480

check if the dialplan works when dialing number is like *12345,
if it works, then add the following dial plan

Dial Plan 2: priority 2

$request=^INVITE
To = sip:([0-9]+)@

Deploy2
$session=com.sample.radius.proxy.RadiusAcct
$continue=true
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1