Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] SIP registration fails when using hostname in sip_profile ?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
brian at freeswitch.org
Guest





PostPosted: Mon Mar 16, 2009 3:17 pm    Post subject: [Freeswitch-users] SIP registration fails when using hostnam Reply with quote

This would be one thing to look at your DNS name isn't resolving
correctly.. you might consider using dynamic DNS and you can then set
the them to "host:myhost.dyndns.org"

/b

On Mar 16, 2009, at 12:55 PM, ludovic wrote:

Quote:
2009-03-16 18:29:42 [DEBUG] sofia.c:206 sofia_event_callback() event
[nua_r_invite] status [503][DNS Error] session: sofia/external/
0123456789
2009-03-16 18:29:42 [DEBUG] sofia.c:206 sofia_event_callback() event
[nua_i_state] status [503][DNS Error] session: sofia/external/
0123456789


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
ludovic.fouquet at bew...
Guest





PostPosted: Mon Mar 16, 2009 3:17 pm    Post subject: [Freeswitch-users] SIP registration fails when using hostnam Reply with quote

Hi all,

Here is my setup :
------------------------------
local sipphone ------> |lan1 (router running FS) wan1|--->internet
------------------------------

local_ip_v4 is set to lan1 address

wan1 has a dynamic IP address.
On startup, when wan1 has an IP address, I add the entry in my /etc/host : xxx.xxx.xxx.xxx my_host

I would like to tell FS that the external profile has to be created on wan1 with :
<param name="rtp-ip" value="my_host"/>

It seems good, the external profile is created. But the registration of my SIP account failed.

The working conf for registration is to set rtp-ip and sip-ip to local_ip_v4, and to have ext-rtp-ip=$${external_rtp_ip} and sip-rtp-ip=$${external_sip_ip}
But in that case, it can't route outgoing calls (see attached file).

I don't konw how to fix it.

Thanks for your help.

Ludovic
Back to top
ludovic.fouquet at bew...
Guest





PostPosted: Tue Mar 17, 2009 6:36 am    Post subject: [Freeswitch-users] SIP registration fails when using hostnam Reply with quote

Thanks.
It seems that it comes from my sip provider.
when using my_host as my hostname, reg fails
when using my_host.com as my hostname, reg succeeds (my_host.com does not exist as a domain internet)
when using ip address, reg succeeds.

Tested with version 1.0.3

Is it a way to force the IP address to be used in SIP header instead of hostname ?

Thanks

Ludovic

Brian West a écrit :
Quote:
Quote:
This would be one thing to look at your DNS name isn't resolving
correctly.. you might consider using dynamic DNS and you can then set
the them to "host:myhost.dyndns.org"

/b

On Mar 16, 2009, at 12:55 PM, ludovic wrote:

Quote:
2009-03-16 18:29:42 [DEBUG] sofia.c:206 sofia_event_callback() event
[nua_r_invite] status [503][DNS Error] session: sofia/external/
0123456789
2009-03-16 18:29:42 [DEBUG] sofia.c:206 sofia_event_callback() event
[nua_i_state] status [503][DNS Error] session: sofia/external/
0123456789


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
[/url] Ludovic Fouquet
R&D Engineer

Tel. : + 33 (0)1 43 34 63 38
Fax : + 33 (0)1 46 91 03 71
Web : [url=http://www.bewan.com]www.bewan.com
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Mar 17, 2009 9:07 am    Post subject: [Freeswitch-users] SIP registration fails when using hostnam Reply with quote

What I provided you was an example. I don't think you understood what
I was talking about.

In the settings for ext-sip-ip and ext-rtp-ip you'll have to use
something like "host:yourdyndnshostname.blah.tld"

Then set the sip-ip and rtp-ip to what ever is auto detected.

/b


On Mar 17, 2009, at 6:22 AM, ludovic wrote:

Quote:
Thanks.
It seems that it comes from my sip provider.
when using my_host as my hostname, reg fails
when using my_host.com as my hostname, reg succeeds (my_host.com
does not exist as a domain internet)
when using ip address, reg succeeds.

Tested with version 1.0.3

Is it a way to force the IP address to be used in SIP header instead
of hostname ?

Thanks

Ludovic


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
ludovic.fouquet at bew...
Guest





PostPosted: Tue Mar 17, 2009 1:26 pm    Post subject: [Freeswitch-users] SIP registration fails when using hostnam Reply with quote

I understood the example.
What I mean is that my DNS issue comes from sofia-sip and my sip provider (freephonie.net) name resolution which fails when calling whereas it is well resolved during the registration process.
Here is a trace :
Quote:
2009-03-17 18:47:28 [NOTICE] switch_channel.c:538 switch_channel_set_name() New Channel sofia/external/0123456789 [ae9c2108-131b-11de-8a2f-1fafbaa54120]                          nua: nh_create_handle: entering                                                                                                         &nbsp
;                                           nua: nua_handle_bind: entering                                                                                                                                                      nua: nua_invite: entering                                                                                                                                                           nua: nua_stack_set_params: entering                                                                                                                                                 soa_clone(static::0x100abd98, 0x100a8738, 0x100c6748) called                                                                                                                        soa_set_params(static::0x100b4728, ...) called                                                                                                                                      soa_set_params(static::0x100b4728, ...) called                                                                                                                                      soa_set_user_sdp(static::0x100b4728, (nil), 0x10106364, -1) called                                                                                                                  soa_set_capability_sdp(static::0x100b4728, (nil), 0x10106364, -1) called                                                                                                            su_localinfo: if lo with index 1                                                                                                                                                    nua: nua_handle_bind: entering                                                                                                                                                     
0
Quote:
nua: nua_handle_bind: entering                                                                                                                                                     
1
Quote:
nua: nua_handle_bind: entering                                                                                                                                                     
2
Quote:
nua: nua_handle_bind: entering                                                                                                                                                     
3
Quote:
nua: nua_handle_bind: entering                                                                                                                                                     
4
Quote:
nua: nua_handle_bind: entering                                                                                                                                                     
5
Quote:
nua: nua_handle_bind: entering                                                                                                                                                     
6
Quote:
nua: nua_handle_bind: entering                                                                                                                                                     
7
Quote:
nua: nua_handle_bind: entering                                                                                                                                                     
8
Quote:
nua: nua_handle_bind: entering                                                                                                                                                     
9
Quote:
nua: nua_invite: entering                                                                                                                                                          
0
Quote:
nua: nua_invite: entering                                                                                                                                                          
1
Quote:
nua: nua_invite: entering                                                                                                                                                          
2
Quote:
nua: nua_invite: entering                                                                                                                                                          
3
Quote:
nua: nua_invite: entering                                                                                                                                                          
4
Quote:
nua: nua_invite: entering                                                                                                                                                          
5
Quote:
nua: nua_invite: entering                                                                                                                                                          
6
Quote:
nua: nua_invite: entering                                                                                                                                                          
7
Quote:
nua: nua_invite: entering                                                                                                                                                          
8
Quote:
nua: nua_invite: entering                                                                                                                                                          
9
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
0
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
1
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
2
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
3
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
4
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
5
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
6
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
7
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
8
Quote:
nua: nua_stack_set_params: entering                                                                                                                                                
9
Quote:
soa_clone(static::0x100abd98, 0x100a8738, 0x100c6748) called                                                                                                                       
0
Quote:
soa_clone(static::0x100abd98, 0x100a8738, 0x100c6748) called                                                                                                                       
1
I check my dnsmasq log, and I see there is no data for SRV DNS request, and that's the reason (I think) sofia stops.

Regards

Ludovic
Brian West a écrit :
Quote:
Quote:
soa_clone(static::0x100abd98, 0x100a8738, 0x100c6748) called                                                                                                                       
2
Quote:
Quote:
soa_clone(static::0x100abd98, 0x100a8738, 0x100c6748) called                                                                                                                       
3 soa_clone(static::0x100abd98, 0x100a8738, 0x100c6748) called                                                                                                                       
4

--
[/url] Ludovic Fouquet
R&D Engineer

Tel. : + 33 (0)1 43 34 63 38
Fax : + 33 (0)1 46 91 03 71
Web : [url=http://www.bewan.com]www.bewan.com
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Mar 17, 2009 1:46 pm    Post subject: [Freeswitch-users] SIP registration fails when using hostnam Reply with quote

I checked, I don't see sw1.freephonie.net in the logs trying to
resolve it... and the SRV records are all correct as are the naptr
records which is shocking Wink

/b

On Mar 17, 2009, at 1:16 PM, ludovic wrote:

Quote:
I understood the example.
What I mean is that my DNS issue comes from sofia-sip and my sip
provider (freephonie.net) name resolution which fails when calling
whereas it is well resolved during the registration process.
Here is a trace :
2009-03-17 18:47:28 [NOTICE] switch_channel.c:538
switch_channel_set_name() New Channel sofia/external/0123456789
[ae9c2108-131b-11de-8a2f-1fafbaa54120] nua:
nh_create_handle: entering
;
nua: nua_handle_bind: entering
nua: nua_invite: entering
nua: nua_stack_set_params: entering
soa_clone(static::0x100abd98, 0x100a8738, 0x100c6748) called
soa_set_params(static::0x100b4728, ...) called
soa_set_params(static::0x100b4728, ...) called
soa_set_user_sdp(static::0x100b4728, (nil), 0x10106364, -1) called
soa_set_capability_sdp(static::0x100b4728, (nil), 0x10106364, -1)
called
su_localinfo: if lo with index 1
su_localinfo: if lan1 with index 18
su_localinfo: if ppp1 with index 23
nta_leg_tcreate(0x100c7f30)
nua(0x100c6748): adding session usage
soa_init_offer_answer(static::0x100b4728) called
soa_generate_offer(static::0x100b4728, 0) called
soa_static_offer_answer_action(0x100b4728, soa_generate_offer): called
soa_static(0x100b4728, soa_generate_offer): generating local
description
su_localinfo: if lo with index 1
su_localinfo: if lan1 with index 18
su_localinfo: if ppp1 with index 23
soa_static(0x100b4728, soa_generate_offer): upgrade with local
description
soa_sdp_mode_set(0x7dbfd850, (nil), ""): called
soa_static(0x100b4728, soa_generate_offer): storing local description
soa_get_local_sdp(static::0x100b4728, [(nil)], [0x7dbff980],
[0x7dbff984]) called
nta: selecting scheme sip
sres_cache_get(0x100abfc0, NAPTR, "freephonie.net.") called
rr found in cache: freephonie.net. 35
sres_cache_get(0x100abfc0, NAPTR, "freephonie.net.") returned 1
entries
nta: for "freephonie.net" query "freephonie.net" NAPTR (cached)
nta: freephonie.net. IN NAPTR 100 100 "s" "SIP+D2U" ""
_sip_udp.freephonie.net.
sres_cache_get(0x100abfc0, SRV, "_sip_udp.freephonie.net.") called
rr found in cache: _sip_udp.freephonie.net. 33
sres_cache_get(0x100abfc0, SRV, "_sip_udp.freephonie.net.") returned
1 entries
nta: for "freephonie.net" query "_sip_udp.freephonie.net." SRV
(cached)
nta: timer set to 32000 ms
nua(0x100c6748): call state changed: init -> calling, sent offer
soa_get_local_sdp(static::0x100b4728, [0x7dbff988], [0x7dbff98c],
[(nil)]) called
nua: nua_application_event: entering
nua(0x100c6748): call state changed: calling -> init
nua(0x100c6748): removing session usage
soa_destroy(static::0x100b4728) called


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
ludovic.fouquet at bew...
Guest





PostPosted: Fri Mar 20, 2009 5:26 am    Post subject: [Freeswitch-users] SIP registration fails when using hostnam Reply with quote

Just to let you know.
My resolv issue comes from dnsmasq who filters request of SRV type and which name contains underscore. It is due to the option filterwin2k. But I have to let this option and find a way to force sofia to use DNS on external interface.

Regards,

Ludovic

Brian West a écrit :
Quote:
Quote:
I checked, I don't see sw1.freephonie.net in the logs trying to
resolve it... and the SRV records are all correct as are the naptr
records which is shocking Wink

/b

On Mar 17, 2009, at 1:16 PM, ludovic wrote:

Quote:
I understood the example.
What I mean is that my DNS issue comes from sofia-sip and my sip
provider (freephonie.net) name resolution which fails when calling
whereas it is well resolved during the registration process.
Here is a trace :
2009-03-17 18:47:28 [NOTICE] switch_channel.c:538
switch_channel_set_name() New Channel sofia/external/0123456789
[ae9c2108-131b-11de-8a2f-1fafbaa54120] nua:
nh_create_handle: entering
;
nua: nua_handle_bind: entering
nua: nua_invite: entering
nua: nua_stack_set_params: entering
soa_clone(static::0x100abd98, 0x100a8738, 0x100c6748) called
soa_set_params(static::0x100b4728, ...) called
soa_set_params(static::0x100b4728, ...) called
soa_set_user_sdp(static::0x100b4728, (nil), 0x10106364, -1) called
soa_set_capability_sdp(static::0x100b4728, (nil), 0x10106364, -1)
called
su_localinfo: if lo with index 1
su_localinfo: if lan1 with index 18
su_localinfo: if ppp1 with index 23
nta_leg_tcreate(0x100c7f30)
nua(0x100c6748): adding session usage
soa_init_offer_answer(static::0x100b4728) called
soa_generate_offer(static::0x100b4728, 0) called
soa_static_offer_answer_action(0x100b4728, soa_generate_offer): called
soa_static(0x100b4728, soa_generate_offer): generating local
description
su_localinfo: if lo with index 1
su_localinfo: if lan1 with index 18
su_localinfo: if ppp1 with index 23
soa_static(0x100b4728, soa_generate_offer): upgrade with local
description
soa_sdp_mode_set(0x7dbfd850, (nil), ""): called
soa_static(0x100b4728, soa_generate_offer): storing local description
soa_get_local_sdp(static::0x100b4728, [(nil)], [0x7dbff980],
[0x7dbff984]) called
nta: selecting scheme sip
sres_cache_get(0x100abfc0, NAPTR, "freephonie.net.") called
rr found in cache: freephonie.net. 35
sres_cache_get(0x100abfc0, NAPTR, "freephonie.net.") returned 1
entries
nta: for "freephonie.net" query "freephonie.net" NAPTR (cached)
nta: freephonie.net. IN NAPTR 100 100 "s" "SIP+D2U" ""
_sip_udp.freephonie.net.
sres_cache_get(0x100abfc0, SRV, "_sip_udp.freephonie.net.") called
rr found in cache: _sip_udp.freephonie.net. 33
sres_cache_get(0x100abfc0, SRV, "_sip_udp.freephonie.net.") returned
1 entries
nta: for "freephonie.net" query "_sip_udp.freephonie.net." SRV
(cached)
nta: timer set to 32000 ms
nua(0x100c6748): call state changed: init -> calling, sent offer
soa_get_local_sdp(static::0x100b4728, [0x7dbff988], [0x7dbff98c],
[(nil)]) called
nua: nua_application_event: entering
nua(0x100c6748): call state changed: calling -> init
nua(0x100c6748): removing session usage
soa_destroy(static::0x100b4728) called


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
[/url] Ludovic Fouquet
R&D Engineer

Tel. : + 33 (0)1 43 34 63 38
Fax : + 33 (0)1 46 91 03 71
Web : [url=http://www.bewan.com]www.bewan.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services