[Freeswitch-users] Could this be a bug in the SIP registry?

Mitchel Constantin mythicalbox at weavver.com
Tue Jun 30 21:11:36 PDT 2009


Hello,
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.

Here is how I ran into the issue:

1. Started from sample configs
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.
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
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.
5. My phones now register using the correct domain name (i.e. weavver.com)
instead of the IP address (205.134.225.20) as the domain.
6. Now the problem... My originate command no longer works using the new
syntax: originate sofia/internal/mythicalbox%weavver.comsofia/internal/johndoe%
weavver.com

The phones do show up as registered when I type "sofia status profile
internal":

API CALL [sofia(status profile internal)] output:
=================================================================================================
Name                    internal
Domain Name             N/A
DBName                  sofia_reg_internal
Pres Hosts
Dialplan                XML
Context                 public
Challenge Realm         auto_from
RTP-IP                  205.134.225.20
SIP-IP                  205.134.225.20
URL                     sip:mod_sofia at 205.134.225.20:5060
BIND-URL                sip:mod_sofia at 205.134.225.20:5060
HOLD-MUSIC              local_stream://moh
OUTBOUND-PROXY          N/A
CODECS                  G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM
TEL-EVENT               101
DTMF-MODE               rfc2833
CNG                     13
SESSION-TO              0
MAX-DIALOG              0
NOMEDIA                 false
LATE-NEG                false
PROXY-MEDIA             false
AGGRESSIVENAT           true
STUN-ENABLED            true
STUN-AUTO-DISABLE       false
CALLS-IN                9
FAILED-CALLS-IN         3
CALLS-OUT               8
FAILED-CALLS-OUT        18

Registrations:
=================================================================================================
Call-ID:        ZWQ3NjRhZWI3MDc4ZDhjNTdhZDU2ZGVkM2JmYjg3NTc.
User:           mythicalbox at weavver.com
Contact:        "mythicalbox" <sip:mythicalbox at 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>
Agent:          eyeBeam release 1102u stamp 52344
Status:         Registered(TCP-NAT)(unknown) EXP(2009-06-30 22:43:47)
Host:           duck.weavver.com
IP:             64.183.110.250
Port:           65438
Auth-User:      mythicalbox
Auth-Realm:     weavver.com

Call-ID:        Y2E0NWZiZWZjOTYxYjVhNmQ5ZDkyMzJjMzUxYWM0ZGM.
User:           johndoe at weavver.com
Contact:        "johndoe" <sip:johndoe at 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>
Agent:          eyeBeam release 1102u stamp 52344
Status:         Registered(TCP-NAT)(unknown) EXP(2009-06-30 22:47:37)
Host:           duck.weavver.com
IP:             64.183.110.250
Port:           65512
Auth-User:      johndoe
Auth-Realm:     weavver.com

=================================================================================================

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.

Thank you in advance for any help! :)

-- 
Mitchel Constantin
Weavver, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090630/43fe93c4/attachment-0002.html 


More information about the FreeSWITCH-users mailing list