<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.E-MailFormatvorlage19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.E-MailFormatvorlage20
{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></head><body lang="DE-AT" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Hello,<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>i checked handbook:<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>the variable is „</span><span style='font-size:10.0pt;font-family:"Courier New";color:black'>${caller_emergency_suffix}“ </span><span style='font-size:10.0pt;font-family:Wingdings;color:black'>J</span><span style='font-size:10.0pt;font-family:"Courier New";color:black'> so ${emergency_suffix}doesn’t exist ;)<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class="MsoNormal"><span style='font-size:10.0pt;font-family:"Courier New";color:black'>i tried it again now and it works!<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class="MsoNormal"><span style='font-size:10.0pt;font-family:"Courier New";color:black'><o:p> </o:p></span></p><p class="MsoNormal"><span style='font-size:10.0pt;font-family:"Courier New";color:black'>Jan 7 17:23:23 spce proxy[3713]: NOTICE: <script>: Rewriting called party '144' to 'emergency_invalidAC_144'<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Jan 7 17:23:23 spce proxy[3713]: NOTICE: <script>: Emergency call detected - R=sip:emergency_invalidAC_144@<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Jan 7 17:23:23 spce proxy[3713]: NOTICE: <script>: Rewriting called party 'emergency_invalidAC_144' to '431144'<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Jan 7 17:23:23 spce proxy[3713]: NOTICE: <script>: Setting P-Called-Party-ID '<sip:431144@<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Jan 7 17:23:23 spce proxy[3711]: NOTICE: <script>: NAT-Reply - S=183 - Session Progress<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>Thanks a lot for your help<o:p></o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class="MsoNormal"><b><span lang="DE" style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Von:</span></b><span lang="DE" style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Daniel Grotti [mailto:dgrotti@sipwise.com] <br><b>Gesendet:</b> Samstag, 7. Jänner 2017 17:04<br><b>An:</b> Matthias Hohl <matthias.hohl@telematica.at><br><b>Cc:</b> spce-user@lists.sipwise.com<br><b>Betreff:</b> Re: AW: [Spce-user] Emergency Calls in Austria with 0720<o:p></o:p></span></p><p class="MsoNormal"><o:p> </o:p></p><div><p class="MsoNormal">I would need to check the log.<o:p></o:p></p><div><p class="MsoNormal">As written in the handbook, you can use emergency_prefix or suffix in the rewrite rules.<o:p></o:p></p></div><div><p class="MsoNormal">Double check the handbook, maybe you wrote it in the wrong way. Or maybe the caller does not have the rewrite rule set assigned?<o:p></o:p></p></div><div><p class="MsoNormal"><o:p> </o:p></p></div><div><p class="MsoNormal">Daniel<o:p></o:p></p></div></div><div><p class="MsoNormal"><o:p> </o:p></p><div><p class="MsoNormal">On Jan 7, 2017 5:00 PM, Matthias Hohl <<a href="mailto:matthias.hohl@telematica.at">matthias.hohl@telematica.at</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hello,</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>thanks for your answer… I tried it but i found out, that SPCE can’t find the „${emergency_suffix}“ variable.</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>That what i did for 43 720 emergency number handling:</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p style='text-indent:-18.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>1.)</span><span style='font-size:7.0pt;color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Insert „invalidAC_“ at the 43 720 subscriber under „Preferences > Number Manipulations > emergency_suffix“</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p style='text-indent:-18.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>2.)</span><span style='font-size:7.0pt;color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Edit the Rewrite Rule Set of the Subsriber > „Inbound Rewrite Rules for Callee“:</span><o:p></o:p></p><p style='margin-left:72.0pt;text-indent:-18.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>a.</span><span style='font-size:7.0pt;color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Match Pattern: ^(110|112|122|128|133|140|141|142|144|147)$</span><o:p></o:p></p><p style='margin-left:72.0pt;text-indent:-18.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>b.</span><span style='font-size:7.0pt;color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Replacement Pattern: emergency_${emergency_suffix}\1</span><o:p></o:p></p><p style='margin-left:72.0pt;text-indent:-18.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>c.</span><span style='font-size:7.0pt;color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Description: Tag Emergency Numbers</span><o:p></o:p></p><p style='margin-left:72.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p style='text-indent:-18.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>3.)</span><span style='font-size:7.0pt;color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Create a new Rewrite Rule for the Peer and out it on the highest priority > „Outbound Rewrite Rules for Callee“:</span><o:p></o:p></p><p style='margin-left:72.0pt;text-indent:-18.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>a.</span><span style='font-size:7.0pt;color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Match Pattern: ^emergency_invalidAC_(.+)$</span><o:p></o:p></p><p style='margin-left:72.0pt;text-indent:-18.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>b.</span><span style='font-size:7.0pt;color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Replacement Pattern: 431\1</span><o:p></o:p></p><p style='margin-left:72.0pt;text-indent:-18.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>c.</span><span style='font-size:7.0pt;color:#1F497D'> </span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Description: Emergency Invalid_AC</span><o:p></o:p></p><p style='margin-left:72.0pt'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>If I place a call now from the 43 720 number SPCE didn’t add the defined „invalidAC_“ as emergency_suffix. It looks like that SPCE didn’t regonize this „${emergency_suffix}“. </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Any idea?</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Thank you!</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Von:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Daniel Grotti [<a href="mailto:dgrotti@sipwise.com">mailto:dgrotti@sipwise.com</a>] <br><b>Gesendet:</b> Freitag, 6. Jänner 2017 23:03<br><b>An:</b> Matthias Hohl <<a href="mailto:matthias.hohl@telematica.at">matthias.hohl@telematica.at</a>><br><b>Cc:</b> <a href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a><br><b>Betreff:</b> Re: [Spce-user] Emergency Calls in Austria with 0720</span><o:p></o:p></p><p> <o:p></o:p></p><div><p>Better to rewrite to:<o:p></o:p></p><div><p> <o:p></o:p></p></div><div><p><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>^(11[0-9]) into emergency_${emergency_suffix}\1.</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>Otherwise you could end up in number emergency__110 if calls is from non 720 users</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>As I said, better to use a dedicated rewrote rule set for 720 user, so you can use :</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>^(11[0-9]) into emergency_${emergency_suffix}_\1.</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>Without any problems.</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p><span style='font-size:10.5pt;font-family:"Arial",sans-serif'>Daniel</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div></div><div><p> <o:p></o:p></p><div><p>On Jan 6, 2017 10:32 PM, Daniel Grotti <<a href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div><p>Ah, you have to rewrite the callee, not the caller! <o:p></o:p></p><div><p>Then it is possible.<o:p></o:p></p></div><div><p>So yes, my initial solution will work.<o:p></o:p></p></div><div><p>You set emergency_suffix in subs preferences as I said.<o:p></o:p></p></div><div><p>Then in the inbound rewrite rules for the callee you rewrite ^(11[0-9]) into emergency_${emergency_suffix}_\1.<o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p>So the number from normal subscriber should be rewritten into emergency_110, but calls from 720 subs will be emergency_invalidAC_110.<o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p>If you have problems, just create a special rewrite rules set for users 720 instead of adding the rule in generic domain's rewrite rule set.<o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p>Then in outbound rewrite rule for callee in your peer you will have 2 rules:<o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>^emergency_(.+)$ </span><span style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>----></span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>${caller_cc}${caller_ac}\1</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p>And with highest precedence:<o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>^emergency_invalidAC_(.+)$ </span><span style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>---></span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> 431\1</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p><span style='font-family:"Arial",sans-serif'> in this way you should achieve what you want.</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Daniel</span><o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p> <o:p></o:p></p><div><p>On Jan 6, 2017 9:44 PM, Matthias Hohl <<a href="mailto:matthias.hohl@telematica.at">matthias.hohl@telematica.at</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div><div><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hello,</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>yes this is an austrian specific issue with this 0720 AC for emergency calls.</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>If you try to call an emergency number (120, 122, 133 or whatever) you get this back:</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 17:44:16 spce proxy[3717]: NOTICE: <script>: Setting caller_cli_userprov/caller_domain_userprov '43720266497@sip.telematica.at' for upn - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1385091644-19093-12@BHC.BG.F.BAC">ID=1385091644-19093-12@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 17:44:16 spce proxy[3717]: NOTICE: <script>: Setting >From to '<<a href="sip:43720266497@sip.telematica.at">sip:43720266497@sip.telematica.at</a>>' - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1385091644-19093-12@BHC.BG.F.BAC">ID=1385091644-19093-12@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 17:44:16 spce proxy[3717]: NOTICE: <script>: Setting caller_cli_netprov/caller_domain_netprov '43720266497@sip.telematica.at' for npn - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1385091644-19093-12@BHC.BG.F.BAC">ID=1385091644-19093-12@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 17:44:16 spce proxy[3717]: NOTICE: <script>: Setting PAI to '<<a href="sip:43720266497@sip.telematica.at">sip:43720266497@sip.telematica.at</a>>' - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1385091644-19093-12@BHC.BG.F.BAC">ID=1385091644-19093-12@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 17:44:16 spce proxy[3717]: NOTICE: <script>: Rewriting called party 'emergency_144' to '43720144' - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1385091644-19093-12@BHC.BG.F.BAC">ID=1385091644-19093-12@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 17:44:16 spce proxy[3717]: NOTICE: <script>: Setting P-Called-Party-ID '<<a href="sip:43720144@92.63.158.30">sip:43720144@92.63.158.30</a>>' - R=sip:43720144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1385091644-19093-12@BHC.BG.F.BAC">ID=1385091644-19093-12@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>...</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 17:44:17 spce proxy[3713]: NOTICE: <script>: NAT-Reply - S=484 - Address Incomplete M=INVITE</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Austrian regulatory doesn’t allow 720 as AC for emergency calls, so in case of an emergency call the AC „720“ must be rewritten to „1“ or any other valid AC from Austria. But „1“ for vienna should be the preferred AC.</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>The problem ist hat i have hundreds of subsribers with 43 720 numbers out there, so patching it manually on every subscriber device is no real deal to make this work.</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Must better would be a rewrite rule solution that makes a IF request: </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>IF emergency call detected AND if B area code is 43 720 THEN rewrite area code to 43 1.</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>This would be the best fitting solution for this problem, cause i can set this globally on the server.</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>At the peering i have this rewrite rule for Outbound rewrite rules for callee:</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>^emergency_(.+)$ </span><span style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>ā</span><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> ${caller_cc}${caller_ac}\1</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>So it not about the number oft he caller it is just about the Rewrite rule the peer use fort he Callee to make from an emergency number a valid Caller CC and caller AC number.. and there he use the wrong Caller AC number in case of 43 720 numbers.</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>BTW: the solution i wrote several months ago with this „</span>${emergency_suffix}=invalidAC_<span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>“… what about this? What you meant with this in your first answer to this topic?</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> invalid</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Yes it would be very nice if you could provide me a solution for this… </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>In the meantime i use this workarround:</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>i open the subscriber settings and go to number manipulations and overwrite the Area code „720“ manually with „1“. Then i can place the call.</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 21:36:06 spce proxy[3707]: NOTICE: <script>: Setting caller_cli_userprov/caller_domain_userprov '43720266497@sip.telematica.at' for upn - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1108595425-19093-13@BHC.BG.F.BAC">ID=1108595425-19093-13@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 21:36:06 spce proxy[3707]: NOTICE: <script>: Setting >From to '<<a href="sip:43720266497@sip.telematica.at">sip:43720266497@sip.telematica.at</a>>' - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1108595425-19093-13@BHC.BG.F.BAC">ID=1108595425-19093-13@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 21:36:06 spce proxy[3707]: NOTICE: <script>: Setting caller_cli_netprov/caller_domain_netprov '43720266497@sip.telematica.at' for npn - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1108595425-19093-13@BHC.BG.F.BAC">ID=1108595425-19093-13@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 21:36:06 spce proxy[3707]: NOTICE: <script>: Setting PAI to '<<a href="sip:43720266497@sip.telematica.at">sip:43720266497@sip.telematica.at</a>>' - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1108595425-19093-13@BHC.BG.F.BAC">ID=1108595425-19093-13@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 21:36:06 spce proxy[3707]: NOTICE: <script>: Rewriting called party 'emergency_144' to '431144' - R=sip:emergency_144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1108595425-19093-13@BHC.BG.F.BAC">ID=1108595425-19093-13@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 21:36:06 spce proxy[3707]: NOTICE: <script>: Setting P-Called-Party-ID '<<a href="sip:431144@92.63.158.30">sip:431144@92.63.158.30</a>>' - R=sip:431144@92.63.158.30:5060;transport=udp <a href="mailto:ID=1108595425-19093-13@BHC.BG.F.BAC">ID=1108595425-19093-13@BHC.BG.F.BAC</a> UA='Grandstream GXP2130 1.0.7.97'</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>…</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jan 6 21:36:07 spce proxy[3717]: NOTICE: <script>: NAT-Reply - S=183 - Session Progress</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Von:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Daniel Grotti [<a href="mailto:dgrotti@sipwise.com">mailto:dgrotti@sipwise.com</a>] <br><b>Gesendet:</b> Freitag, 6. Jänner 2017 18:24<br><b>An:</b> Matthias Hohl <<a href="mailto:matthias.hohl@telematica.at">matthias.hohl@telematica.at</a>><br><b>Cc:</b> <a href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a><br><b>Betreff:</b> Re: AW: AW: [Spce-user] Emergency Calls in Austria with 0720</span><o:p></o:p></p><p> <o:p></o:p></p><div><p>Hi, <o:p></o:p></p><div><p>Ok I see. I get it know.<o:p></o:p></p></div><div><p>You need a patch in kamailio to achieve that, cause you cannot modify the Caller number BASED on Callee number.<o:p></o:p></p></div><div><p>I can have a look at that and provide with a solution.<o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p>Can't you allow your phones to set the From with the AC 1, and you add that number on your allowed_cli list as well as as ALIAS number of that subscriber ?<o:p></o:p></p></div><div><p>In this way they will go out always with 1, bit they can be called back. Or just add the alias, is that possible?<o:p></o:p></p></div><div><p>Sorry I don't know this 720 AC issue so well.<o:p></o:p></p></div><div><p> <o:p></o:p></p></div><div><p>Daniel<o:p></o:p></p></div></div><p> <o:p></o:p></p></div></div></blockquote></div><p> <o:p></o:p></p></div></div></blockquote></div><p> <o:p></o:p></p></div><p><o:p></o:p></p></div></div></blockquote></div><p class="MsoNormal"><o:p> </o:p></p></div></div><img src="http://t.sidekickopen65.com/e1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v4LQ_-W2BpsbF8p-VDHN4WJ21WQFLCHW115b5_1k1H6H0?si=6582522784514048&pi=f0eac6b6-4e08-4bcc-af19-bc179a2fe629" width="1" height="1" style="display:none!important;"></body></html>