Hello,<div><br></div><div>I'm experiencing a bug that I've been working on most of today. I can not call between two SIP phones that register successfully. In order to diagnose it, I have removed my FreeSWITCH server out of the NAT/firewall to try and eliminate any such issues with these things.</div>
<div><br></div><div>Here is how I ran into the issue:</div><div><br></div><div>1. Started from sample configs</div><div>2. Enabled xml_curl and wrote the associated script to generate XML and had the phones authenticating but was forced to use the IP address of the server as the domain in my directory XML.</div>
<div>3. I tested calls and they worked using this syntax: originate sofia/internal/mythicalbox%205.134.225.20 (the server's ip) sofia/internal/johndoe%205.134.225.20</div><div>4. Next to remove the "limit" on using only the IP as the domain for users, I commented out force-register-domain and force-register-db-domain in internal.xml.</div>
<div>5. My phones now register using the correct domain name (i.e. <a href="http://weavver.com">weavver.com</a>) instead of the IP address (205.134.225.20) as the domain.</div><div>6. Now the problem... My originate command no longer works using the new syntax: originate sofia/internal/mythicalbox%<a href="http://weavver.com">weavver.com</a> sofia/internal/johndoe%<a href="http://weavver.com">weavver.com</a></div>
<div><br></div><div>The phones do show up as registered when I type "sofia status profile internal":</div><div><br></div><div><div>API CALL [sofia(status profile internal)] output:</div><div>=================================================================================================</div>
<div>Name internal</div><div>Domain Name N/A</div><div>DBName sofia_reg_internal</div><div>Pres Hosts</div><div>Dialplan XML</div><div>Context public</div>
<div>Challenge Realm auto_from</div><div>RTP-IP 205.134.225.20</div><div>SIP-IP 205.134.225.20</div><div>URL <a href="http://sip:mod_sofia@205.134.225.20:5060">sip:mod_sofia@205.134.225.20:5060</a></div>
<div>BIND-URL <a href="http://sip:mod_sofia@205.134.225.20:5060">sip:mod_sofia@205.134.225.20:5060</a></div><div>HOLD-MUSIC local_stream://moh</div><div>OUTBOUND-PROXY N/A</div><div>CODECS G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM</div>
<div>TEL-EVENT 101</div><div>DTMF-MODE rfc2833</div><div>CNG 13</div><div>SESSION-TO 0</div><div>MAX-DIALOG 0</div><div>NOMEDIA false</div>
<div>LATE-NEG false</div><div>PROXY-MEDIA false</div><div>AGGRESSIVENAT true</div><div>STUN-ENABLED true</div><div>STUN-AUTO-DISABLE false</div><div>CALLS-IN 9</div>
<div>FAILED-CALLS-IN 3</div><div>CALLS-OUT 8</div><div>FAILED-CALLS-OUT 18</div><div><br></div><div>Registrations:</div><div>=================================================================================================</div>
<div>Call-ID: ZWQ3NjRhZWI3MDc4ZDhjNTdhZDU2ZGVkM2JmYjg3NTc.</div><div>User: <a href="mailto:mythicalbox@weavver.com">mythicalbox@weavver.com</a></div><div>Contact: "mythicalbox" <sip:mythicalbox@64.183.110.250:65438;rinstance=e632b810dbf91486;transport=TCP;fs_nat=yes;fs_path=sip%3Amythicalbox%4064.183.110.250%3A65438%3Brinstance%3De632b810dbf91486%3Btransport%3DTCP></div>
<div>Agent: eyeBeam release 1102u stamp 52344</div><div>Status: Registered(TCP-NAT)(unknown) EXP(2009-06-30 22:43:47)</div><div>Host: <a href="http://duck.weavver.com">duck.weavver.com</a></div>
<div>IP: 64.183.110.250</div><div>Port: 65438</div><div>Auth-User: mythicalbox</div><div>Auth-Realm: <a href="http://weavver.com">weavver.com</a></div><div><br></div><div>Call-ID: Y2E0NWZiZWZjOTYxYjVhNmQ5ZDkyMzJjMzUxYWM0ZGM.</div>
<div>User: <a href="mailto:johndoe@weavver.com">johndoe@weavver.com</a></div><div>Contact: "johndoe" <sip:johndoe@64.183.110.250:65512;rinstance=ce0823faf2aba98a;transport=TCP;fs_nat=yes;fs_path=sip%3Ajohndoe%4064.183.110.250%3A65512%3Brinstance%3Dce0823faf2aba98a%3Btransport%3DTCP></div>
<div>Agent: eyeBeam release 1102u stamp 52344</div><div>Status: Registered(TCP-NAT)(unknown) EXP(2009-06-30 22:47:37)</div><div>Host: <a href="http://duck.weavver.com">duck.weavver.com</a></div>
<div>IP: 64.183.110.250</div><div>Port: 65512</div><div>Auth-User: johndoe</div><div>Auth-Realm: <a href="http://weavver.com">weavver.com</a></div><div><br></div><div>=================================================================================================</div>
<div><br></div><div>FYI, FreeSWITCH is on a public IP address on the 'nets and the phones are behind the same firewall on a different public IP address on the internet.</div></div><div><br></div><div>Thank you in advance for any help! :)</div>
<div><br></div><div>-- <br>Mitchel Constantin<br>Weavver, Inc.<br>
</div>