Author |
Message |
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Tue Jun 25, 2013 1:17 pm Post subject: force Caller ID to Restricted |
|
|
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 |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Tue Jun 25, 2013 2:07 pm Post subject: |
|
|
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 |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Tue Jun 25, 2013 2:10 pm Post subject: |
|
|
i dont have a $getUri to pick from the drop down |
|
Back to top |
|
ambrosio Brekeke Master Guru
Joined: 27 Mar 2008 Posts: 215
|
Posted: Tue Jun 25, 2013 2:25 pm Post subject: |
|
|
You can type it. |
|
Back to top |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Fri Jun 28, 2013 8:01 am Post subject: |
|
|
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 |
|
tuie2 Brekeke Talented
Joined: 23 Jan 2009 Posts: 57
|
Posted: Fri Jun 28, 2013 10:45 am Post subject: |
|
|
> 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 |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Mon Jul 01, 2013 9:20 am Post subject: |
|
|
to fix it, what would i do ?
what do normal restricted calls show as? restricted followed by the IP address? |
|
Back to top |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Tue Jul 02, 2013 8:56 am Post subject: |
|
|
anyone have any ideas how i can accomplish this ? |
|
Back to top |
|
tuie2 Brekeke Talented
Joined: 23 Jan 2009 Posts: 57
|
Posted: Tue Jul 02, 2013 10:24 am Post subject: |
|
|
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 |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Tue Jul 02, 2013 10:32 am Post subject: |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Tue Jul 02, 2013 11:01 am Post subject: |
|
|
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 |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Tue Jul 02, 2013 11:48 am Post subject: |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Tue Jul 02, 2013 12:12 pm Post subject: |
|
|
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 |
|
Izzyg Brekeke Talented
Joined: 25 Jun 2013 Posts: 91
Location: Sip Land
|
Posted: Mon Nov 18, 2013 2:53 pm Post subject: |
|
|
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 |
|
|