<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Brian,<br>
      <br>
      Thanks for the guideline. I created an account on JIRA, but I
      don't see any way to post. Do I need to request rights on my
      account? <br>
      I read
      <a class="moz-txt-link-freetext" href="https://wiki.freeswitch.org/wiki/Reporting_Bugs#Reporting_A_Bug_With_JIRA">https://wiki.freeswitch.org/wiki/Reporting_Bugs#Reporting_A_Bug_With_JIRA</a>
      but couldn't find the information.<br>
      <br>
      Thanks in advance.<br>
      Florent<br>
      <br>
      Le 12/03/2014 21:26, Brian West a &eacute;crit&nbsp;:<br>
    </div>
    <blockquote
      cite="mid:FA998084-ED03-4866-AD54-1B9EC40839E7@freeswitch.org"
      type="cite">
      <pre wrap="">Florent,
        If you could provide a diff -u, remove the vanity comments as they aren&#8217;t allowed and we are trying to clean any left out of the tree.  Any comments should be in full /* */ no short cuts of // if possible,  Post it on jira.freeswitch.org and we&#8217;ll review it and provide feedback.

Thanks,
--
Brian West
<a class="moz-txt-link-abbreviated" href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>
FreeSWITCH Solutions, LLC
PO BOX 2531
Brookfield, WI 53008-2531
Twitter: @FreeSWITCH , @briankwest
<a class="moz-txt-link-freetext" href="http://www.freeswitchbook.com">http://www.freeswitchbook.com</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchcookbook.com">http://www.freeswitchcookbook.com</a>

T: +1.918.420.9001  |  F: +1.918.420.9002  |  M: +1.918.424.WEST
iNUM: +883 5100 1420 9001
ISN: 410*543
<a class="moz-txt-link-freetext" href="Skype:briankwest">Skype:briankwest</a>
PGP Key: <a class="moz-txt-link-freetext" href="http://www.bkw.org/key.txt">http://www.bkw.org/key.txt</a> (AB93356707C76CED)













On Mar 12, 2014, at 12:48 PM, Florent Krieg <a class="moz-txt-link-rfc2396E" href="mailto:fkrieg@sewan.eu">&lt;fkrieg@sewan.eu&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Anthony, all,

I wrote a fix this afternoon based on a git master pull (which compiles and works like a charm after some tests).
As I haven't done C programming in ages hence I'd be very grateful if one of you could tell me if the patch is very unstable/could cause a lot of troubles, and so on.

Here it is:
[user@vm ~]# diff /root/freeswitch/src/mod/endpoints/mod_sofia/mod_sofia.h /root/freeswitch_git_test/freeswitch/src/mod/endpoints/mod_sofia/mod_sofia.h
952c952
&lt; uint8_t sofia_reg_handle_register_sw(nua_t *nua, sofia_profile_t *profile, nua_handle_t *nh, sip_t const *sip,
---
</pre>
        <blockquote type="cite">
          <pre wrap="">uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_handle_t *nh, sip_t const *sip,
</pre>
        </blockquote>
        <pre wrap="">955,956c955
&lt;                                                                 uint32_t keylen, switch_event_t **v_event, const char *is_nat, sofia_private_t **sofia_private_p, switch_xml_t *user_xml, char *sw_acl_token);
&lt; #define sofia_reg_handle_register(_nua_, _profile_, _nh_, _sip_, _de_, _regtype_, _key_, _keylen_, _v_event_, _is_nat_, _sofia_private_p_, _user_xml_) sofia_reg_handle_register_sw(_nua_, _profile_, _nh_, _sip_, _de_, _regtype_, _key_, _keylen_, _v_event_, _is_nat_, _sofia_private_p_, _user_xml_, NULL)
---
</pre>
        <blockquote type="cite">
          <pre wrap="">                                                                uint32_t keylen, switch_event_t **v_event, const char *is_nat, sofia_private_t **sofia_private_p, switch_xml_t *user_xml);
</pre>
        </blockquote>
        <pre wrap="">

[user@vm ~]# diff /root/freeswitch/src/mod/endpoints/mod_sofia/sofia_reg.c /root/freeswitch_git_test/freeswitch/src/mod/endpoints/mod_sofia/sofia_reg.c
1119c1119
&lt; uint8_t sofia_reg_handle_register_sw(nua_t *nua, sofia_profile_t *profile, nua_handle_t *nh, sip_t const *sip,
---
</pre>
        <blockquote type="cite">
          <pre wrap="">uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_handle_t *nh, sip_t const *sip,
</pre>
        </blockquote>
        <pre wrap="">1121c1121
&lt;                                                                 uint32_t keylen, switch_event_t **v_event, const char *is_nat, sofia_private_t **sofia_private_p, switch_xml_t *user_xml, char *sw_acl_token)
---
</pre>
        <blockquote type="cite">
          <pre wrap="">                                                                uint32_t keylen, switch_event_t **v_event, const char *is_nat, sofia_private_t **sofia_private_p, switch_xml_t *user_xml)
</pre>
        </blockquote>
        <pre wrap="">1176,1179d1175
&lt;       // FK
&lt;       char *sw_to_user;
&lt;       char *sw_reg_host;
&lt;
1405,1410d1400
&lt;               // FK
&lt;               if (sw_acl_token) {
&lt;                       switch_split_user_domain(sw_acl_token, &amp;sw_to_user, &amp;sw_reg_host);
&lt;                       to_user = sw_to_user;
&lt;                       reg_host = sw_reg_host;
&lt;               }
2080,2081d2069
&lt;       // FK
&lt;       char acl_token[512] = "";
2159,2160d2146
&lt;               // FK
&lt;               const char *token_sw = NULL;
2164c2150
&lt;                       if (!(ok = switch_check_network_list_ip_token(network_ip, last_acl, &amp;token_sw))) {
---
</pre>
        <blockquote type="cite">
          <pre wrap="">                      if (!(ok = switch_check_network_list_ip(network_ip, last_acl))) {
</pre>
        </blockquote>
        <pre wrap="">2171,2173d2156
&lt;                       if (token_sw) {
&lt;                               switch_set_string(acl_token, token_sw);
&lt;                       }
2194c2177
&lt;       sofia_reg_handle_register_sw(nua, profile, nh, sip, de, type, key, sizeof(key), &amp;v_event, is_nat, sofia_private_p, NULL, acl_token);
---
</pre>
        <blockquote type="cite">
          <pre wrap="">      sofia_reg_handle_register(nua, profile, nh, sip, de, type, key, sizeof(key), &amp;v_event, is_nat, sofia_private_p, NULL);
</pre>
        </blockquote>
        <pre wrap="">
I don't mean it to be integrated into FS core, if you don't want it to be. 
I am just willing to use it for our platform and would like your advices because I am not very confident about the dev done.

Thanks all in advance!
Florent
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <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>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.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://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

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