<div dir="ltr">Thank you - worked like a charm!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 12, 2019 at 1:50 AM Daniel Grotti <<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<tt>Hi,<br>
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.<br>
<br>
I suggest to create a customtt for proxy.cfg.tt2 and chage these 2
lines:<br>
<br>
<br>
if($avp(s:from_pstn) == 0 && uri =~ "^sip:\*[%
sems.vsc.clir_code %]\*")<br>
<br>
with<br>
<b> if($avp(s:from_pstn) == 0 && uri =~ "^sip:\*[%
sems.vsc.clir_code %]")<br>
<br>
<br>
<br>
</b>and a couple of lines later:<br>
<br>
strip([% sems.vsc.clir_code.length + 2 %]);<br>
<br>
with:<br>
<br>
<b> strip([% sems.vsc.clir_code.length + 1 %]);</b><br>
<br>
<br>
<br>
And then remove your rewrite rule.<br>
This should work with *67XXXXXX<br>
<br>
Cheers,<br>
<br>
</tt>
<pre class="gmail-m_-7583016621227989104moz-signature" cols="72">--
Daniel Grotti
Head of Customer Support Sipwise GmbH
e: <a class="gmail-m_-7583016621227989104moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a> Europaring F15
t: +43(0)130120332 A-2345 Brunn Am Gebirge
w: <a class="gmail-m_-7583016621227989104moz-txt-link-abbreviated" href="http://www.sipwise.com" target="_blank">www.sipwise.com</a> FN: 305595f FG: LG Wiener Neustadt
</pre>
<div class="gmail-m_-7583016621227989104moz-cite-prefix">On 3/11/19 6:18 PM, Andy Clark wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">In the US - caller ID blocking is typically *67
then the number
<div><br>
</div>
<div>i've updated config.yml to reflect 67 clir_code: '67'</div>
<div><br>
</div>
<div>when dialing *67* then the number, all is is working
perfectly</div>
<div><br>
</div>
<div>i've written a rewrite rule that takes *67XXXXXX ->
*67*XXXXXX</div>
<div><br>
</div>
<div>rewrite rule is working perfectly except the call is
not actually being sent out and instead SPCE says "Invalid
feature code"</div>
<div><br>
</div>
<div>any reason why it's not working?</div>
<div><br>
</div>
<div>---------------------</div>
<div>
<div>Mar 11 10:07:33 spce proxy[3110]: NOTICE:
<script>: Rewriting called party '*6712125551212'
to '*67*12125551212' - R=sip:*<a href="mailto:6712125551212@spce.mydomain.com" target="_blank">6712125551212@spce.mydomain.com</a>;transport=TCP
ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'</div>
<div>Mar 11 10:07:33 spce proxy[3110]: NOTICE:
<script>: VSC request - R=sip:*67*<a href="mailto:12125551212@spce.mydomain.com" target="_blank">12125551212@spce.mydomain.com</a>;transport=TCP
ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'</div>
<div>Mar 11 10:07:33 spce proxy[3110]: NOTICE:
<script>: Call to Application Server -
<a class="gmail-m_-7583016621227989104moz-txt-link-abbreviated" href="mailto:R=sip:*67*12125551212@vsc.local;transport=TCP" target="_blank">R=sip:*67*12125551212@vsc.local;transport=TCP</a>
ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'</div>
<div>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|<a href="http://spce.mydomain.com" target="_blank">spce.mydomain.com</a>|19174561234|||3|||<null>|call|96.126.255.226|1552324053.689254||||||||||||19174561234||||'
- <a class="gmail-m_-7583016621227989104moz-txt-link-abbreviated" href="mailto:R=sip:*67*12125551212@vsc.local;transport=TCP" target="_blank">R=sip:*67*12125551212@vsc.local;transport=TCP</a>
ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'</div>
<div>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|<a href="http://spce.mydomain.com" target="_blank">spce.mydomain.com</a>|0||||||||||||*67*12125551212|||'
- <a class="gmail-m_-7583016621227989104moz-txt-link-abbreviated" href="mailto:R=sip:*67*12125551212@vsc.local;transport=TCP" target="_blank">R=sip:*67*12125551212@vsc.local;transport=TCP</a>
ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'</div>
<div>Mar 11 10:07:33 spce proxy[3110]: NOTICE:
<script>: Setting From to '<<a href="mailto:sip%3A19174561234@spce.mydomain.com" target="_blank">sip:19174561234@spce.mydomain.com</a>>'
- <a class="gmail-m_-7583016621227989104moz-txt-link-abbreviated" href="mailto:R=sip:*67*12125551212@vsc.local;transport=TCP" target="_blank">R=sip:*67*12125551212@vsc.local;transport=TCP</a>
ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'</div>
<div>Mar 11 10:07:33 spce proxy[3110]: NOTICE:
<script>: Request leaving server, M=INVITE fs='<a href="http://127.0.0.1:5062" target="_blank">127.0.0.1:5062</a>'
du='<a href="http://127.0.0.1:5080" target="_blank">127.0.0.1:5080</a>' -
<a class="gmail-m_-7583016621227989104moz-txt-link-abbreviated" href="mailto:R=sip:*67*12125551212@vsc.local;transport=TCP" target="_blank">R=sip:*67*12125551212@vsc.local;transport=TCP</a>
ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'</div>
<div>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=<a href="mailto:sip%3Atest-1@spce.mydomain.com" target="_blank">sip:test-1@spce.mydomain.com</a>;transport=TCP
T=sip:*<a href="mailto:6712125551212@spce.mydomain.com" target="_blank">6712125551212@spce.mydomain.com</a>;transport=TCP
IP=<a href="http://96.126.255.226:39052" target="_blank">96.126.255.226:39052</a> (<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>)
ID=4zzkITIpRRwrrXtl0WQFSw.. UA='Z 5.2.25 rv2.8.112'
DESTIP=<a href="http://127.0.0.1:5062" target="_blank">127.0.0.1:5062</a></div>
<div>Mar 11 10:07:35 spce proxy[3103]: NOTICE:
<script>: New request on proxy - M=BYE
<a class="gmail-m_-7583016621227989104moz-txt-link-abbreviated" href="mailto:R=sip:test-1@96.126.255.226:39052;transport=TCP" target="_blank">R=sip:test-1@96.126.255.226:39052;transport=TCP</a> F=sip:*<a href="mailto:6712125551212@spce.mydomain.com" target="_blank">6712125551212@spce.mydomain.com</a>;transport=TCP
T=<a href="mailto:sip%3A19174561234@spce.mydomain.com" target="_blank">sip:19174561234@spce.mydomain.com</a>
IP=<a href="http://127.0.0.1:5080" target="_blank">127.0.0.1:5080</a> (<a href="http://127.0.0.1:5080" target="_blank">127.0.0.1:5080</a>)
ID=4zzkITIpRRwrrXtl0WQFSw.. UA='GoFIBER spce-TX
Application Server 6.X' DESTIP=<a href="http://127.0.0.1:5062" target="_blank">127.0.0.1:5062</a></div>
<div>root@spce:~#</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_-7583016621227989104mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-7583016621227989104moz-quote-pre">_______________________________________________
Spce-user mailing list
<a class="gmail-m_-7583016621227989104moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a>
<a class="gmail-m_-7583016621227989104moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" rel="noreferrer" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
</blockquote></div>