force Caller ID to Restricted

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

force Caller ID to Restricted

Post by Izzyg »

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
Posts: 215
Joined: Thu Mar 27, 2008 12:20 pm

Post by 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
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

i dont have a $getUri to pick from the drop down
ambrosio
Posts: 215
Joined: Thu Mar 27, 2008 12:20 pm

Post by ambrosio »

You can type it.
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by 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: Select all

[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
Posts: 57
Joined: Fri Jan 23, 2009 5:16 pm

Post by 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
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

to fix it, what would i do ?
what do normal restricted calls show as? restricted followed by the IP address?
Izzyg
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by Izzyg »

anyone have any ideas how i can accomplish this ?
tuie2
Posts: 57
Joined: Fri Jan 23, 2009 5:16 pm

Post by 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
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by 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
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

Code: Select all

[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
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by 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
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by 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
Posts: 91
Joined: Tue Jun 25, 2013 1:14 pm
Location: Sip Land

Post by 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
Post Reply