Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
force Caller ID to Restricted
Author Message
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Tue Jun 25, 2013 1:17 pm    Post subject: force Caller ID to Restricted Reply with quote

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
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Tue Jun 25, 2013 2:07 pm    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE
To = sip:1234@
$getUri( From ) = (.+)
Deploy Patterns
From = "Restricted" <%1>
$continue = true


Tune the above rule as you want.
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Tue Jun 25, 2013 2:10 pm    Post subject: Reply with quote

i dont have a $getUri to pick from the drop down
Back to top
View user's profile
ambrosio
Brekeke Master Guru


Joined: 27 Mar 2008
Posts: 215

PostPosted: Tue Jun 25, 2013 2:25 pm    Post subject: Reply with quote

You can type it.
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Fri Jun 28, 2013 8:01 am    Post subject: Reply with quote

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
Back to top
View user's profile
tuie2
Brekeke Talented


Joined: 23 Jan 2009
Posts: 57

PostPosted: Fri Jun 28, 2013 10:45 am    Post subject: Reply with quote

> 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:(.+)@
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Mon Jul 01, 2013 9:20 am    Post subject: Reply with quote

to fix it, what would i do ?
what do normal restricted calls show as? restricted followed by the IP address?
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Tue Jul 02, 2013 8:56 am    Post subject: Reply with quote

anyone have any ideas how i can accomplish this ?
Back to top
View user's profile
tuie2
Brekeke Talented


Joined: 23 Jan 2009
Posts: 57

PostPosted: Tue Jul 02, 2013 10:24 am    Post subject: Reply with quote

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.
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Tue Jul 02, 2013 10:32 am    Post subject: Reply with quote

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 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
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Jul 02, 2013 11:01 am    Post subject: Reply with quote

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-the-dial-plan-rule
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Tue Jul 02, 2013 11:48 am    Post subject: Reply with quote

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
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Jul 02, 2013 12:12 pm    Post subject: Reply with quote


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
Back to top
View user's profile
Izzyg
Brekeke Talented


Joined: 25 Jun 2013
Posts: 91
Location: Sip Land

PostPosted: Mon Nov 18, 2013 2:53 pm    Post subject: Reply with quote

i got it working


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


Deploy Patterns
$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
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