<div dir="ltr">Set the hostname parameter in switch.conf.xml of both freeswitch boxes to the same name</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 4:29 AM, Chris B. Ware <span dir="ltr">&lt;<a href="mailto:chrisbware@yahoo.it" target="_blank">chrisbware@yahoo.it</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div>
Anyone can help?</div><div>Should I add all my domains on presence_hosts?</div><div><br></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">
<br></div><div style="display:block"> <br> <br> <div style="font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:10pt"> <div style="font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:12pt">
 <div dir="ltr"> <font face="Arial"> Il Venerd́ 14 Marzo 2014 19:18, Chris B. Ware &lt;<a href="mailto:chrisbware@yahoo.it" target="_blank">chrisbware@yahoo.it</a>&gt; ha scritto:<br> </font> </div><div><div class="h5">  <div>
<div><div><div style="font-size:10pt;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><div>Hi,</div><div><br></div><div>On advice by Brian and Anthony I&#39;m writing to mailing list, after a jira (FS-6358).</div>
<div><br></div><div>If I have two Freeswitch servers, sharing the same DB as backend, how should I configure presence such that</div><div>if a phone send SUBSCRIBE to box A, and call is received on box B, I get Notify from box B?</div>
<div><br></div><div>By now I&#39;ve set manage_presence=true on both sip profiles (internal,external) and presence_hosts=&quot;_DISABLED_&quot;</div><div>as I read on wiki.</div><div><br></div><div>Of course dial_string contains presence_id=${dialed_user}@${dialed_domain}. Sip registrations are correctly shared</div>
<div>between boxes, and even presence works sometimes, but is not
 stable. </div><div><br></div><div>Here my internal sip profiles
 config:</div><div><br></div><div>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;</div><div>&lt;document type=&quot;freeswitch/xml&quot;&gt;</div><div>  &lt;section name=&quot;configuration&quot; description=&quot;Various Configuration&quot;&gt;</div>
<div>    &lt;configuration name=&quot;sofia.conf&quot; description=&quot;Sofia Endpoint&quot;&gt;</div><div>      &lt;profiles&gt;</div><div>        &lt;profile name=&quot;internal&quot;&gt;</div><div>          &lt;domains&gt;</div>
<div>            &lt;domain name=&quot;all&quot; alias=&quot;true&quot; parse=&quot;false&quot;/&gt;</div><div>          &lt;/domains&gt;</div><div>          &lt;settings&gt;</div><div>            &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;</div>
<div>            &lt;param name=&quot;sip-trace&quot; value=&quot;no&quot;/&gt;</div><div>         
   &lt;param name=&quot;sip-capture&quot; value=&quot;no&quot;/&gt;</div><div>            &lt;param name=&quot;watchdog-enabled&quot; value=&quot;no&quot;/&gt;</div><div>            &lt;param name=&quot;watchdog-step-timeout&quot; value=&quot;30000&quot;/&gt;</div>
<div>            &lt;param name=&quot;watchdog-event-timeout&quot; value=&quot;30000&quot;/&gt;</div><div>            &lt;param name=&quot;log-auth-failures&quot; value=&quot;true&quot;/&gt;</div><div>            &lt;param name=&quot;forward-unsolicited-mwi-notify&quot; value=&quot;false&quot;/&gt;</div>
<div>            &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;</div><div>            &lt;param name=&quot;rfc2833-pt&quot; value=&quot;101&quot;/&gt;</div><div>            &lt;param name=&quot;sip-port&quot; value=&quot;$${internal_sip_port}&quot;/&gt;</div>
<div>           
 &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;</div><div>            &lt;param name=&quot;dtmf-duration&quot; value=&quot;2000&quot;/&gt;</div><div>            &lt;param name=&quot;inbound-codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;</div>
<div>            &lt;param name=&quot;outbound-codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;</div><div>            &lt;param name=&quot;rtp-timer-name&quot; value=&quot;soft&quot;/&gt;</div><div>            &lt;param name=&quot;rtp-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;</div>
<div>            &lt;param name=&quot;sip-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;</div><div>            &lt;param name=&quot;hold-music&quot; value=&quot;$${hold_music}&quot;/&gt;</div><div>            &lt;param name=&quot;apply-nat-acl&quot; value=&quot;nat.auto&quot;/&gt;</div>
<div>         
   &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;domains&quot;/&gt;</div><div>            &lt;param name=&quot;local-network-acl&quot; value=&quot;localnet.auto&quot;/&gt;</div><div>            &lt;param name=&quot;record-path&quot; value=&quot;$${recordings_dir}&quot;/&gt;</div>
<div>            &lt;param name=&quot;record-template&quot; value=&quot;${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav&quot;/&gt;</div><div>            &lt;param name=&quot;manage-presence&quot; value=&quot;true&quot;/&gt;</div>
<div>            &lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;generous&quot;/&gt;</div><div>            &lt;param name=&quot;tls&quot; value=&quot;$${internal_ssl_enable}&quot;/&gt;</div><div>            &lt;param name=&quot;tls-bind-params&quot; value=&quot;transport=tls&quot;/&gt;</div>
<div>            &lt;param
 name=&quot;tls-sip-port&quot; value=&quot;$${internal_tls_port}&quot;/&gt;</div><div>            &lt;param name=&quot;tls-cert-dir&quot; value=&quot;$${internal_ssl_dir}&quot;/&gt;</div><div>            &lt;param name=&quot;tls-version&quot; value=&quot;$${sip_tls_version}&quot;/&gt;</div>
<div>            &lt;param name=&quot;nonce-ttl&quot; value=&quot;60&quot;/&gt;</div><div>            &lt;param name=&quot;auth-calls&quot; value=&quot;$${internal_auth_calls}&quot;/&gt;</div><div>            &lt;param name=&quot;inbound-reg-force-matching-username&quot; value=&quot;true&quot;/&gt;</div>
<div>            &lt;param name=&quot;auth-all-packets&quot; value=&quot;false&quot;/&gt;</div><div>            &lt;param name=&quot;ext-rtp-ip&quot; value=&quot;auto-nat&quot;/&gt;</div><div>            &lt;param name=&quot;ext-sip-ip&quot; value=&quot;auto-nat&quot;/&gt;</div>
<div>       
     &lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;300&quot;/&gt;</div><div>            &lt;param name=&quot;rtp-hold-timeout-sec&quot; value=&quot;1800&quot;/&gt;</div><div>            &lt;param name=&quot;presence-hosts&quot; value=&quot;_DISABLED_&quot;/&gt;</div>
<div>            &lt;param name=&quot;odbc-dsn&quot; value=&quot;systemDB:freeswitch:pazzword&quot;/&gt;</div><div>            &lt;param name=&quot;challenge-realm&quot; value=&quot;auto_from&quot;/&gt;</div><div>            &lt;param name=&quot;outbound-proxy&quot; value=&quot;sip::5060&quot;/&gt;</div>
<div>          &lt;/settings&gt;</div><div>        &lt;/profile&gt;</div><div>      &lt;/profiles&gt;</div><div>    &lt;/configuration&gt;</div><div>  &lt;/section&gt;</div><div>&lt;/document&gt;</div><div><br></div><div>
<br></div><div>Can somebody
 help?</div></div></div></div><br><br></div>  </div></div></div> </div>  </div> </div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>