<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Quite strange.<div>Did you see any error in proxy.log that it did not take over that rule-set?</div><div>By restarting the proxy it won’t start in case of an error.</div><div><br><div><div>Am 19.01.2015 um 16:00 schrieb Mykola Zaika <<a href="mailto:mzaika@voiptime.net">mzaika@voiptime.net</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div>Hi,<br></div>I typed all characters manually from the keyboard and all are working.<br><br></div>Thank You very much.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><font color="#888888">-- <br><div><div dir="ltr"><div>З повагою,</div><div>Микола Заїка<br></div><div>Компанія VoIPTime,</div><div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380 32 2328022</a></span></div><div><span style="color:rgb(0,0,255)"><a href="mailto:ydidukh@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div><div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net/" target="_blank">www.voiptime.net</a></span></div></div></div></font></span></div></div></div></div></div>
<br><div class="gmail_quote">2015-01-19 16:44 GMT+02:00 Thomas Odorfer <span dir="ltr"><<a href="mailto:odotom@gmail.com" target="_blank">odotom@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div>did you copy/paste the 911 rule (inbound rewrite)?</div><div>Be careful of the ^  character, if you copy it from a html page it might not be the right character. Type it from the keyboard!</div><div>BR</div><div><br><div><div>Am 19.01.2015 um 15:15 schrieb Daniel Grotti <<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>>:</div><br><blockquote type="cite">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div>Hi,<br>
      it looks good at a first sight.<br>
      <br>
      Daniel<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      On 01/19/2015 03:13 PM, Mykola Zaika wrote:<br>
    </div>
    </span><blockquote type="cite">
      <div dir="ltr"><span class="">I understand You completely.  Here are some
        examples. What am I doing wrong? <br>
        </span><div><span class=""><br>
          1) set your emergency_prefix in subscriber preferences (ex
          peerA_)<br>
          <br>
          </span><span><Mail-Anhang.png></span><span class=""><br>
          2) rewrite all the calls from that subscriber and prefix them
          with that value peerA_. You have to use the special variable
          ${caller_emergency_prefix} in the INBOUND rewrite rules for
          callee (attached to the subscriber's domain or to the
          subscriber itself).<br>
          <br>
          </span><span><Mail-Anhang.png></span><span class=""><br>
          <br>
          3) now all the calls from that subscriber has destination
          like: peerA_XXXXXX<br>
          4) put the value of "peerA_" in the peering server rules as
          callee prefix value<br>
          <br>
          </span><span><Mail-Anhang.png></span><span class=""><br>
          <br>
          5) remove the prefix using the peering's OUTBOUND rewrite
          rules for callee<br>
          <br>
          </span><span><Mail-Anhang.png></span><br>
        </div>
      </div><div><div class="h5">
      <div class="gmail_extra"><br clear="all">
        <div>
          <div>
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div>
                    <div dir="ltr"><span><font color="#888888">-- <br>
                          <div>
                            <div dir="ltr">
                              <div>З повагою,</div>
                              <div>Микола Заїка<br>
                              </div>
                              <div>Компанія VoIPTime,</div>
                              <div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380 32 2328022</a></span></div>
                              <div><span style="color:rgb(0,0,255)"><a href="mailto:ydidukh@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div>
                              <div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net/" target="_blank">www.voiptime.net</a></span></div>
                            </div>
                          </div>
                        </font></span></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">2015-01-19 15:23 GMT+02:00 Daniel
          Grotti <span dir="ltr"><<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Hi,<br>
                so this is how it works:<br>
                <br>
                <br>
                1) set your emergency_prefix in subscriber preferences
                (ex peerA_)<br>
                2) rewrite all the calls from that subscriber and prefix
                them with that value peerA_. You have to use the special
                variable ${caller_emergency_prefix} in the INBOUND
                rewrite rules for callee (attached to the subscriber's
                domain or to the subscriber itself).<br>
                3) now all the calls from that subscriber has
                destination like: peerA_XXXXXX<br>
                4) put the value of "peerA_" in the peering server rules
                as callee prefix value<br>
                5) remove the prefix using the peering's OUTBOUND
                rewrite rules for callee<br>
                <br>
                <br>
                hope this is much clear.<span><font color="#888888"><br>
                    <br>
                    <br>
                    Daniel</font></span>
                <div>
                  <div><br>
                    <br>
                    <br>
                    On 01/19/2015 02:13 PM, Mykola Zaika wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>I checked all my settings. Maybe rewrite
                          rules have to enable in global configuration
                          files? <br>
                        </div>
                        In subscribers setting is field
                        "emergency_prefix: (A numeric string intended to
                        be used in rewrite rules for emergency
                        numbers.)" When I can use that field? Can I use
                        "emergency_prefix" and  "rewrite_rule_set:"
                        together?<br>
                        <br>
                      </div>
                      Thanks.<br>
                    </div>
                    <div class="gmail_extra"><br clear="all">
                      <div>
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr"><span><font color="#888888">-- <br>
                                        <div>
                                          <div dir="ltr">
                                            <div>З повагою,</div>
                                            <div>Микола Заїка<br>
                                            </div>
                                            <div>Компанія VoIPTime,</div>
                                            <div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380
                                                  32 2328022</a></span></div>
                                            <div><span style="color:rgb(0,0,255)"><a href="mailto:ydidukh@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div>
                                            <div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net/" target="_blank">www.voiptime.net</a></span></div>
                                          </div>
                                        </div>
                                      </font></span></div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <br>
                      <div class="gmail_quote">2015-01-19 13:54
                        GMT+02:00 Daniel Grotti <span dir="ltr"><<a href="mailto:dgrotti@sipwise.com" target="_blank">dgrotti@sipwise.com</a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000">
                            <div>Please double check you rewrite rules
                              for Callee cause you  got:<span><br>
                                <br>
                                <br>
                                On 01/19/2015 11:51 AM, Mykola Zaika
                                wrote:<br>
                              </span></div>
                            <span>
                              <blockquote type="cite">Jan 19 11:39:34
                                spce /usr/sbin/kamailio[16077]: INFO:
                                <script>: Applying callee-in
                                domain rewrite rules using dpid '10' -
                                R=<a href="mailto:sip%3A911@10.110.10.55" target="_blank">sip:911@10.110.10.55</a>
                                ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43" target="_blank">27a860496ea813781de8a0d3731f11af@10.110.10.43</a><br>
                                Jan 19 11:39:34 spce
                                /usr/sbin/kamailio[16077]: INFO:
                                <script>: No matching rewrite
                                rules for '911' found - R=<a href="mailto:sip%3A911@10.110.10.55" target="_blank">sip:911@10.110.10.55</a>
                                ID=<a href="mailto:27a860496ea813781de8a0d3731f11af@10.110.10.43" target="_blank">27a860496ea813781de8a0d3731f11af@10.110.10.43</a></blockquote>
                              <br>
                              <br>
                            </span> so the number is not rewritten into
                            "emergency_911".<span><font color="#888888"><br>
                                <br>
                                Daniel<br>
                                <br>
                              </font></span></div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </div></div></blockquote>
    <br>
  </div><span class="">

_______________________________________________<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" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br></span></blockquote></div><br></div></div></blockquote></div><br></div>
</blockquote></div><br></div></body></html>