<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      I should add that FS OPTIONS indeed cause trouble to some far-end
      implementations. <br>
      Not just because they only contain domains as indicated by
      Stanislav. But also because it's always the same domain both in
      From: and To: headers. Example:<br>
      <br>
      From: &lt;sip:<b>5.6.7.8</b>&gt;;tag=ZZZ1Na2KacXcm<br>
      To: &lt;sip:<b>5.6.7.8</b>&gt;"<br>
      <br>
      While this is probably standard-complaint, some implementations
      expect From: header to contain FS own IP. Example:<br>
      <br>
      From: &lt;sip:<b>1.2.3.4</b>&gt;;tag=ZZZ1Na2KacXcm<br>
      To: &lt;sip:<b>5.6.7.8</b>&gt;"<br>
      <br>
      Moreover, SIP gateway param "from-domain" has no effects on
      OPTIONS request From: header.... this param seem to be only parsed
      for INVITE &amp; REGISTER requests.<br>
      <br>
      Presently I don't have time for JIRA / feature request, so putting
      it here in case someone struggles with the same.<br>
      Maybe someone will be able to go ahead and improve this.<br>
      <br>
      Cheers,<br>
      -Victor<br>
      <br>
      <br>
      On 15-02-23 11:04 AM, Brian West wrote:<br>
    </div>
    <blockquote
cite="mid:CAEJMVkA57-0UmH8JgEy_qAUQD-Jxg3B7vQ1WFPb7yJp1u3S-+Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">Those are perfectly valid OPTIONS packets, how
        exactly is the vendor claiming it breaks them?  </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Feb 23, 2015 at 4:14 AM,
          Stanislav Sinyagin <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:ssinyagin@gmail.com"
              target="_blank">ssinyagin@gmail.com</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">It appears
            that in the OPTIONS ping packet, To and From fields contain<br>
            only the domain name.<br>
            <br>
            In sofia.c:<br>
            <br>
                       if (ping_freq) {<br>
                            if (ping_freq &gt;= 5) {<br>
                                gateway-&gt;ping_freq = ping_freq;<br>
                                gateway-&gt;ping_max = ping_max;<br>
                                gateway-&gt;ping_min = ping_min;<br>
                                gateway-&gt;ping_monitoring =
            ping_monitoring;<br>
                                gateway-&gt;ping =
            switch_epoch_time_now(NULL) + ping_freq;<br>
                                gateway-&gt;options_to_uri =<br>
            switch_core_sprintf(gateway-&gt;pool, "&lt;sip:%s&gt;",<br>
                                    !zstr(from_domain) ? from_domain :
            proxy);<br>
                                gateway-&gt;options_from_uri =
            gateway-&gt;options_to_uri;<br>
                            } else {<br>
                                switch_log_printf(SWITCH_CHANNEL_LOG,<br>
            SWITCH_LOG_ERROR, "ERROR: invalid ping!\n");<br>
                            }<br>
                        }<br>
            <br>
            <br>
            <br>
            Is there a reason why To and From fields don;t contain the
            register<br>
            username? This seems to break some other vendor gateways.<br>
            <br>
            <br>
            thanks,<br>
            stan<br>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <p><font face="courier new, monospace"><b><i><font size="4">Brian
                      West</font></i></b><br>
                <span style="font-size:x-small"><a
                    moz-do-not-send="true"
                    href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
            <p><font face="courier new, monospace" size="1"><img
                  moz-do-not-send="true"
                  src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br>
              </font></p>
            <p><font face="courier new, monospace"><b><i>Twitter:
                    @FreeSWITCH , @briankwest</i></b><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitchcookbook.com"
                  target="_blank">http://www.freeswitchcookbook.com</a></font></p>
            <p><font face="courier new, monospace"><b>T:</b>+19184209001
                | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br>
                <b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>