Forums Read-only archive

Reject Pay Phone Calls in Dial Plan

2 posts · Brekeke SIP Server Forum

eric9721 Original post
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 Pattern:
$request=^INVITE
$param(oli,"isup-oli")-^25$

Deploy Pattern:
$action=503

This rule does not seem to do any thing though.........
janP
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