Forums Read-only archive

force Caller ID to Restricted

14 posts · Brekeke SIP Server Forum

Izzyg Original post
1. Brekeke Product Name and Version:
2.4.8.6/286.3

2. Java version:
1.6.0_31

3. OS type and the version:
Windows Server 2008 R2

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

5. Your problem:
id like to set that incoming calls to a Specific phone number, we will strip the from phone number and name, and set it to Restricted
ambrosio
Matching patterns:
$request = ^INVITE
To = sip:1234@
$getUri( From ) = (.+)

Deploy Pattern:
From = "Restricted" <%1>
$continue = true


Tune the above rule as you want.
Izzyg
i dont have a $getUri to pick from the drop down
ambrosio
You can type it.
Izzyg
Seems like it is not working 100 Percent

i want to set it up the same exact way as a real blocked call is
whats the rules i need?

the issue with this rule

Code:

[Matching Patterns]
&request=^INVITE
To=sip:(.+)@
To=sip:2125551212 (removed real phone number)
$getUri( From ) = (.+)


[Deploy Patterns]
$auth=false
$session=failover sip:%1@IPADDRESS sip:%1@2ndIPADDRESS
To=sip:%1@IPAddress
&failover.timer.inviting=5
&failover.timer.provisional=360
From="Restricted" <%1>
$continue=false

the call comes in, it shows from restricted with no IP address in the "From" Header

also the Contact Header remains with the original Caller ID and the Remote Party has the original phone number IP address and Privacy as Off
tuie2
> the call comes in, it shows from restricted with no IP address in the "From" Header

See the rule what you defined...


Your "From "definition in Deploy Patterns is the following.
From = "Restricted" <%1>

%1 is got from "To" definition in Matching Patterns.
To = sip:(.+)@
Izzyg
to fix it, what would i do ?
what do normal restricted calls show as? restricted followed by the IP address?
Izzyg
anyone have any ideas how i can accomplish this ?
tuie2
Do you want to put a dialed number in From header?
Or do you want to keep a caller's number in From header?

The current your dialplan rule puts a dialed number in From header.
Izzyg
i finally changed it and the Caller ID the caller sees is Restricted, i just need to change it to use the From IP address and not 8.8.8.8

Matching Patterns:
$request=^INVITE
To=sip:(.+)@
To=sip:2125551000


Deploy Pattern:
$auth=false
To=sip:2125551000@8.20.94.21
$session=failover sip:%1@IPADDRESS1 sip:%1@IPADDRESS2
&failover.timer.inviting=5
&failover.timer.provisional=360
$replaceuri=true
Remote-Party-ID="Restricted"<sip:Restricted@8.8.8.8>
Contact="Restricted"<sip:Restricted@8.8.8.8>
From="Restricted"<sip:Restricted@8.8.8.8>
$continue=false
hope

Code:

[Matching Patterns]
&request=^INVITE
To=sip:(.+)@
To=sip:2125551212 (removed real phone number)
$getUri( From ) = (.+)


[Deploy Patterns]
$auth=false
$session=failover sip:%1@IPADDRESS sip:%1@2ndIPADDRESS
To=sip:%1@IPAddress
&failover.timer.inviting=5
&failover.timer.provisional=360
From="Restricted" <%1>
$continue=false
need to use %2 in Deploy Patterns From="Restricted" <%2>
http://wiki.brekeke.com/wiki/buffer-in- ... -plan-rule
Izzyg
this is myy current dial plan, which sends it as Restricted, but i want to send it as the IP originally in the From, not 8.8.8.8

Matching Patterns
$request = ^INVITE
To = sip:(.+)@
To = sip:2125551000


Deploy Patterns
$auth = false
To = sip:2125551000@8.20.94.21
$session = failover sip:%1@IPADDRESS1 sip:%1@IPADDRESS2
&failover.timer.inviting = 5
&failover.timer.provisional = 360
$replaceuri = true
Remote-Party-ID = "Restricted"<sip:Restricted@8.8.8.8>
Contact = "Restricted"<sip:Restricted@8.8.8.8>
From = "Restricted"<sip:Restricted@8.8.8.8>
$continue = false
hope
[Matching Patterns]
&request=^INVITE
To=sip:(2125551212)@
$getUri( From ) = (.+)


[Deploy Patterns]
$auth=false
$session=failover sip:%1@IPADDRESS sip:%1@2ndIPADDRESS
To=sip:%1@IPAddress
&failover.timer.inviting=5
&failover.timer.provisional=360
From="Restricted" <%2>
$continue=false

or

Matching Patterns
$request = ^INVITE
To = sip:(2125551000)@
$getUri( From ) = sip:.+@(.+)


Deploy Patterns
$auth = false
To = sip:%1@8.20.94.21
$session = failover sip:%1@IPADDRESS1 sip:%1@IPADDRESS2
&failover.timer.inviting = 5
&failover.timer.provisional = 360
$replaceuri = true
Remote-Party-ID = "Restricted" <sip:Restricted@%2>
Contact = "Restricted" <sip:Restricted@%2>
From = "Restricted" <sip:Restricted@%2>
$continue = false
Izzyg
i got it working


Matching Patterns:
$request=^INVITE
To=sip:(.+)@
To=sip:2125551000
$getUri(From)=sip:.+@(.+)


Deploy Pattern:
$auth=false
To=sip:%1@IPAddress
$session=failover sip:%1@IPADDRESS sip:%1@2ndIPADDRESS
&failover.timer.inviting=5
&failover.timer.provisional=360
Contact="Restricted"<sip:Restricted@%2>
From="Restricted"<sip:Restricted@%2>
Remote-Party-ID="Restricted"<sip:Restricted@%2>
$replaceuri=true
$continue=false