Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Reject Pay Phone Calls in Dial Plan
Author Message
eric9721
Brekeke Junior Member


Joined: 16 Dec 2009
Posts: 7
Location: Richardson, Tx

PostPosted: Wed Aug 06, 2014 6:20 am    Post subject: Reject Pay Phone Calls in Dial Plan Reply with quote

1. Brekeke Product Name and Version: Advanced Edition 3.3.4.4/379

2. Java version:

3. OS type and the version:

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

5. Your problem: I need to be able to read the isup-oli field and reject calls that come in with a value of 25. Here is an example packet.


From: "Anonymous"sip:+18185551234@10.10.10.10;isup-oli=25;tag=95ffcd055e0f78f7d5d397 020e89288d63d4

I need to be able to get read the value in isup-oli and then reject the call if it is equal to 25.

This is what I have come up with....

Matching Patterns
$request = ^INVITE

$param(oli,"isup-oli")-^25$

Deploy Patterns
$action = 503

This rule does not seem to do any thing though.........
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Mon Aug 11, 2014 11:03 pm    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE
From = isup-oli=25;
Deploy Patterns
$response = 503


-OR-


Matching Patterns
$request = ^INVITE
$param(From, "isup-oli") = ^25$
Deploy Patterns
$response = 503
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