[Spce-user] caller ID blocking using VSC

Daniel Grotti dgrotti at sipwise.com
Tue Mar 12 04:50:17 EDT 2019


Hi,
the problem is that the interception of the CLIR code is done BEFORE the 
rewrite rules, that's why *67 works, but *67* not, as it will not 
intercept the CLIR code and then rewrite the number and try to send the 
call to the VSC server, which should not be the case with CLIR code.

I suggest to create a customtt for proxy.cfg.tt2 and chage these 2 lines:


         if($avp(s:from_pstn) == 0 && uri =~ "^sip:\*[% 
sems.vsc.clir_code %]\*")

with
*        if($avp(s:from_pstn) == 0 && uri =~ "^sip:\*[% 
sems.vsc.clir_code %]")



*and  a couple of lines later:

                 strip([% sems.vsc.clir_code.length + 2 %]);

with:

*                strip([% sems.vsc.clir_code.length + 1 %]);*



And then remove your rewrite rule.
This should work with *67XXXXXX

Cheers,

--
Daniel Grotti

Head of Customer Support                               Sipwise GmbH
e: dgrotti at sipwise.com                               Europaring F15
t: +43(0)130120332                          A-2345 Brunn Am Gebirge
w: www.sipwise.com          FN: 305595f      FG: LG Wiener Neustadt

On 3/11/19 6:18 PM, Andy Clark wrote:
> In the US - caller ID blocking is typically *67 then the number
>
> i've updated config.yml to reflect 67 clir_code: '67'
>
> when dialing *67* then the number, all is is working perfectly
>
> i've written a rewrite rule that takes *67XXXXXX -> *67*XXXXXX
>
> rewrite rule is working perfectly except the call is not actually 
> being sent out and instead SPCE says "Invalid feature code"
>
> any reason why it's not working?
>
> ---------------------
> Mar 11 10:07:33 spce proxy[3110]: NOTICE: <script>: Rewriting called 
> party '*6712125551212' to '*67*12125551212' - 
> R=sip:*6712125551212 at spce.mydomain.com 
> <mailto:6712125551212 at spce.mydomain.com>;transport=TCP 
> ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'
> Mar 11 10:07:33 spce proxy[3110]: NOTICE: <script>: VSC request - 
> R=sip:*67*12125551212 at spce.mydomain.com 
> <mailto:12125551212 at spce.mydomain.com>;transport=TCP 
> ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'
> Mar 11 10:07:33 spce proxy[3110]: NOTICE: <script>: Call to 
> Application Server - R=sip:*67*12125551212 at vsc.local;transport=TCP 
> ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'
> Mar 11 10:07:33 spce proxy[3110]: NOTICE: <script>: Setting acc 
> source-leg for uuid 'dd049a2f-9686-4cac-bc35-49c9c5971fc7': 
> 'dd049a2f-9686-4cac-bc35-49c9c5971fc7|test-1|spce.mydomain.com 
> <http://spce.mydomain.com>|19174561234|||3|||<null>|call|96.126.255.226|1552324053.689254||||||||||||19174561234||||' 
> - R=sip:*67*12125551212 at vsc.local;transport=TCP 
> ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'
> Mar 11 10:07:33 spce proxy[3110]: NOTICE: <script>: Setting acc 
> destination-leg for uuid 'dd049a2f-9686-4cac-bc35-49c9c5971fc7': 
> '0|||0|*6712125551212|dd049a2f-9686-4cac-bc35-49c9c5971fc7|*67*12125551212|vsc.local|*67*12125551212|spce.mydomain.com 
> <http://spce.mydomain.com>|0||||||||||||*67*12125551212|||' - 
> R=sip:*67*12125551212 at vsc.local;transport=TCP 
> ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'
> Mar 11 10:07:33 spce proxy[3110]: NOTICE: <script>: Setting From to 
> '<sip:19174561234 at spce.mydomain.com 
> <mailto:sip%3A19174561234 at spce.mydomain.com>>' - 
> R=sip:*67*12125551212 at vsc.local;transport=TCP 
> ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'
> Mar 11 10:07:33 spce proxy[3110]: NOTICE: <script>: Request leaving 
> server, M=INVITE fs='127.0.0.1:5062 <http://127.0.0.1:5062>' 
> du='127.0.0.1:5080 <http://127.0.0.1:5080>' - 
> R=sip:*67*12125551212 at vsc.local;transport=TCP 
> ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'
> Mar 11 10:07:33 spce proxy[3108]: NOTICE: <script>: New request on 
> proxy - M=ACK R=sip:127.0.0.1:5080;prxroute=1 
> F=sip:test-1 at spce.mydomain.com 
> <mailto:sip%3Atest-1 at spce.mydomain.com>;transport=TCP 
> T=sip:*6712125551212 at spce.mydomain.com 
> <mailto:6712125551212 at spce.mydomain.com>;transport=TCP 
> IP=96.126.255.226:39052 <http://96.126.255.226:39052> (127.0.0.1:5060 
> <http://127.0.0.1:5060>) ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 
> rv2.8.112' DESTIP=127.0.0.1:5062 <http://127.0.0.1:5062>
> Mar 11 10:07:35 spce proxy[3103]: NOTICE: <script>: New request on 
> proxy - M=BYE R=sip:test-1 at 96.126.255.226:39052;transport=TCP 
> F=sip:*6712125551212 at spce.mydomain.com 
> <mailto:6712125551212 at spce.mydomain.com>;transport=TCP 
> T=sip:19174561234 at spce.mydomain.com 
> <mailto:sip%3A19174561234 at spce.mydomain.com> IP=127.0.0.1:5080 
> <http://127.0.0.1:5080> (127.0.0.1:5080 <http://127.0.0.1:5080>) 
> ID=4zzkITIpRRwrrXtl0WQFSw.. UA='GoFIBER spce-TX Application Server 
> 6.X' DESTIP=127.0.0.1:5062 <http://127.0.0.1:5062>
> root at spce:~#
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20190312/f7682c99/attachment-0001.html>


More information about the Spce-user mailing list