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

2009-03-20 Thread ludovic




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:

  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 ;)

/b

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

  
  
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

  


-- 


  

   
   Ludovic Fouquet
  RD
Engineer
   
Tel.: + 33 (0)1 43 34 63 38
Fax: + 33 (0)1 46 91 03 71
Web: www.bewan.com 

  




___
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


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

2009-03-17 Thread ludovic




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:

  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:

  
  
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

  


-- 


  

   
   Ludovic Fouquet
  RD
Engineer
   
Tel.: + 33 (0)1 43 34 63 38
Fax: + 33 (0)1 46 91 03 71
Web: www.bewan.com 

  




___
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


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

2009-03-17 Thread Brian West
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:

 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


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

2009-03-17 Thread Brian West
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 ;)

/b

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

 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


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

2009-03-16 Thread ludovic




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


2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:141 
switch_core_standard_on_execute() sofia/internal/ludo...@192.168.1.1:5061 
Execute db(insert/spymap/${caller_id_number}/)
2009-03-16 18:29:42 [DEBUG] switch_core_session.c:1059 
switch_core_session_execute_application() 
sofia/internal/ludo...@192.168.1.1:5061 Expanded String 
db(insert/spymap/ludovic/0)
2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:141 
switch_core_standard_on_execute() sofia/internal/ludo...@192.168.1.1:5061 
Execute db(insert/last_dial/${caller_id_numbe)
2009-03-16 18:29:42 [DEBUG] switch_core_session.c:1059 
switch_core_session_execute_application() 
sofia/internal/ludo...@192.168.1.1:5061 Expanded String 
db(insert/last_dial/ludovi)
2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:141 
switch_core_standard_on_execute() sofia/internal/ludo...@192.168.1.1:5061 
Execute db(insert/last_dial/global/${uuid})   
2009-03-16 18:29:42 [DEBUG] switch_core_session.c:1059 
switch_core_session_execute_application() 
sofia/internal/ludo...@192.168.1.1:5061 Expanded String 
db(insert/last_dial/global)
2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:141 
switch_core_standard_on_execute() sofia/internal/ludo...@192.168.1.1:5061 
Execute bridge(sofia/gateway/freephonie.net/0)
2009-03-16 18:29:42 [NOTICE] switch_channel.c:538 switch_channel_set_name() New 
Channel sofia/external/0123456789 [08ee8f46-1250-11de-9e6d-07496a8df75d]

2009-03-16 18:29:42 [DEBUG] mod_sofia.c:2029 sofia_outgoing_channel() 
sofia/external/0123456789 State Change CS_NEW - CS_INIT
  
2009-03-16 18:29:42 [DEBUG] switch_core_session.c:727 
switch_core_session_signal_state_change() Kill sofia/external/0123456789 
[BREAK]  
2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:366 
switch_core_session_run() sofia/external/0123456789 Running State Change 
CS_INIT
2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:416 
switch_core_session_run() (sofia/external/0123456789) State INIT

2009-03-16 18:29:42 [DEBUG] mod_sofia.c:85 sofia_on_init() 
sofia/external/0123456789 SOFIA INIT
 
2009-03-16 18:29:42 [DEBUG] sofia_glue.c:488 sofia_glue_ext_address_lookup() 
Stun Success [89.226.241.9]:[18992] 
   
2009-03-16 18:29:42 [DEBUG] mod_sofia.c:112 sofia_on_init() 
sofia/external/0123456789 State Change CS_INIT - CS_ROUTING

2009-03-16 18:29:42 [DEBUG] switch_core_session.c:727 
switch_core_session_signal_state_change() Kill sofia/external/0123456789 
[BREAK]  
2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:416 
switch_core_session_run() (sofia/external/0123456789) State INIT going to sleep 

2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:366 
switch_core_session_run() sofia/external/0123456789 Running State Change 
CS_ROUTING 
2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:421 
switch_core_session_run() (sofia/external/0123456789) State ROUTING 

2009-03-16 18:29:42 [DEBUG] mod_sofia.c:124 sofia_on_routing() 
sofia/external/0123456789 SOFIA ROUTING 
 
2009-03-16 18:29:42 [DEBUG] switch_ivr_originate.c:57 originate_on_routing() 
sofia/external/0123456789 State Change CS_ROUTING - CS_CONSUME_MEDIA   
   
2009-03-16 18:29:42 [DEBUG] switch_core_session.c:727 
switch_core_session_signal_state_change() Kill sofia/external/0123456789 
[BREAK]  
2009-03-16 18:29:42 [DEBUG] switch_core_state_machine.c:421 
switch_core_session_run() (sofia/external/0123456789) State ROUTING going 

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

2009-03-16 Thread Brian West
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:

 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