<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
you can use Rewrite rules as well.<br>
For your target subscriber you can populate the "emergency_suffix",
and then use it ${emergency_suffix}=invalidAC_ in the inbound
rewrite rule for caller, to prefix the value for call to emergency
number.<br>
Then on Peering side you can intercept the ${emergency_suffix}
caller, remove the prefix, the 43720 and substitute it with 431,
this is in the peer's outbound rewrite rule for caller:<br>
<br>
^invalidAC_43720([0-9]+) ----> 431\1<br>
<br>
this should work.<br>
<br>
<br>
Daniel<br>
<br>
<br>
<div class="moz-cite-prefix">On 05/30/2016 04:01 PM, Matthias Hohl
wrote:<br>
</div>
<blockquote cite="mid:30af01d1ba7b$bfef4d90$3fcde8b0$@telematica.at"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Calling an emergency
number from a 43 720 123456 number will currently fail,
cause 720 is no valid AC prefix in Austria.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So I must rewrite 720
to AC 1 to fix that problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have done this
currently in the subscriber settings that I rewrite the AC
Code 720 with 1 but I was thinking about if this is the
right handling to fix this problem?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I was thinking about
rewrite rules, but afaik there is no batch working with
rewrite rules, so the first rule will match and stop, so I
cant first remove emergency_ and then check if 720 is AC
and if yes then rewrite it with 1.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any other ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">thanks<o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
</blockquote>
<br>
</body>
</html>