OpenWrt Forum Archive

Topic: Is this router based on the infineon danube?

The content of this topic has been archived between 1 Oct 2014 and 1 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Delboy wrote:

Is there any app that show ADSL status ( speed,link quality...) for ltq-dsl, I looked at "DSL CPE Control Application", but it looks like that option isn't there.

I'd be interested too: I wouldn't like to get, say, 10% of my current bandwidth (I've already been burned by lousy wifi performance on my router with openwrt, so I'd like to check that dsl performance is acceptable before I put it into real use).

About ADSL status, I would be interested too smile.

Related to the sofia-sip/svd client I have been testing this weekend...

I achieve to start the svd process enabling some kernel modules (ifxos, ltq-dsl, ltq-tapi , ltq-vmmc). I think it works without the ltq-vmmc ipk package but I am not sure at 100%...

Now, svd allow me to listen tone, type and dial numbers but there are some problem because the call does not reach the destination.... I don't know if there are some problem about ya.com autentification..... perhaps I need the option of proxy outgoing  or the STUNTS servers....

Related to the ingoing calls, At first I obtained the "voice message box" of ya.com but after I change some account settings, the svd picked up the call and show me the "ACK" acknowledge response by a log message (svd -d9) ACK 89.131.XX.XXX:5060 but no phone ring and the call was cut.

I will try to investigate further...next week..... perhaps I would need to change some hardcoded settings inside sofia-sip or svd..... or perhaps I would have to learn how to compile these packages....I think I need some help.

INCOMING CALL TO  sip:(null)@89.131.XX.XXX
nua: nua_respond: entering
nua(0xbc37e8): sent signal r_respond
nua: nua_handle_destroy: entering
nua(0xbc37e8): sent signal r_destroy
  ^^^^ svd_i_invite() ^^^^
^^^^ svd_nua_callback() ^^^^
nua(0xbc37e8): call state changed: init -> early, received offer
soa_get_remote_sdp(static::0xbbdcb0, [0x2b8a7dc0], [0x2b8a7dc4], [(nil)]) called
nua: nua_stack_set_params: entering
soa_set_params(static::0xbbdcb0, ...) called
nua: nua_invite_server_respond: entering
soa_clear_remote_sdp(static::0xbbdcb0) called
tport_tsend(0xbb9938) tpn = UDP/84.78.3.62:5060
tport_resolve addrinfo = 84.78.3.62:5060
tport_by_addrinfo(0xbb9938): not found by name UDP/84.78.3.62:5060
tport_vsend returned 469
nta: sent 500 Internal Server Error for INVITE (21061694)
nua(0xbc37e8): removing session usage
nua(0xbc37e8): call state changed: early -> terminated
soa_destroy(static::0xbbdcb0) called
nta_leg_destroy(0xbbdee0)
nta_leg_destroy((nil))
tport_wakeup_pri(0xbb9938): events IN
tport_recv_event(0xbb9938)
tport_recv_iovec(0xbb9938) msg 0xbbe590 from (udp/89.131.XX.XXX:5060) has 328 bytes, veclen = 1
tport_deliver(0xbb9938): msg 0xbbe590 (328 bytes) from udp/84.78.3.62:5060/sip next=(nil)
nta: received ACK sip:89.131.XX.XXX SIP/2.0 (CSeq 21061694)
nta: ACK (21061694) is going to INVITE (21061694)
nta: timer set next to 4913 ms
nta: timer I fired, terminate 500 response
incoming_reclaim_all((nil), (nil), 0x2b8a81bc)
nta_incoming_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free
nta: timer not set
 

t:G726-24/bp1/sz9/pt:0x67__[0:0]::[22:960:80:1600]
t:G726-32/bp1/sz9/pt:0x68__[0:0]::[22:960:80:1600]
t:G726-40/bp1/sz9/pt:0x69__[0:0]::[22:960:80:1600]
t:telephone-event/bp0/sz0/pt:0x6A__[0:0]::[0:0:0:0]
SIP net 0 : voip1, enabled: 1
        Codecs: G729 PCMA telephone-event
        Registrar   : 'sip:voipd.ya.com'
        User/Pass   : '93XXXXXXX/password'
        User_URI    : 'sip:+3493XXXXXXX@voipd.ya.com'
        Ring incoming:
                channel 0:1
                channel 1:1
        Outgoing priority:
                channel 0:1
                channel 1:1
        Dtmf mode: rfc2883
chan 0 enc_dB 0 dec_db 0 vad 0 hpf 0 wlec_mode 
root@OpenWrt:/etc/config# vvvv svd_create() vvvv
=========================
channels 2 : log[5] : ports[5000:6000]
t:PCMA/bp0/sz9/pt:0x8__[0:0]::[22:960:80:1600]
t:G729/bp0/sz9/pt:0x12__[0:0]::[22:960:80:1600]
t:G729E/bp0/sz9/pt:0x65__[0:0]::[22:960:80:1600]
t:iLBC/bp0/sz6/pt:0x64__[0:0]::[22:960:80:1600]
t:G723/bp0/sz9/pt:0x4__[0:0]::[22:960:80:1600]
t:G726-16/bp1/sz9/pt:0x66__[0:0]::[22:960:80:1600]
t:G726-24/bp1/sz9/pt:0x67__[0:0]::[22:960:80:1600]
t:G726-32/bp1/sz9/pt:0x68__[0:0]::[22:960:80:1600]
t:G726-40/bp1/sz9/pt:0x69__[0:0]::[22:960:80:1600]
t:telephone-event/bp0/sz0/pt:0x6A__[0:0]::[0:0:0:0]
SIP net 0 : voip1, enabled: 1
        Codecs: G729 PCMA telephone-event
        Registrar   : 'sip:voipd.ya.com'
        User/Pass   : '+3493XXXXXXX/password'
        User_URI    : 'sip:93XXXXXXX@voipd.ya.com'
        Ring incoming:
                channel 0:1
                channel 1:1

----------------

Event : nua_r_get_params
  vvvv svd_r_get_params() vvvv
sip::from: <sip:89.131.XX.XXX>
sip::from_str: "<sip:89.131.XX.XXX>"
nua::retry_count: 3
nua::max_subscriptions: 20
nua::media_enable: true
nua::enableInvite: true
nua::autoAlert: true
nua::early_media: false
nua::only183_100rel: false
nua::autoAnswer: false
nua::autoACK: true
nua::invite_timer: 120
nua::session_timer: 1800
nua::min_se: 120
nua::session_refresher: 0
nua::update_refresh: false
nua::enableMessage: true
nua::enableMessenger: false
nua::callee_caps: false
nua::media_features: false
nua::service_route_enable: true
nua::path_enable: true
nua::refer_expires: 300
nua::refer_with_id: true
nua::auto302: true
nua::auto305: true
nua::substate: 2
nua::substate: 3600
sip::supported: timer, 100rel
sip::supported_str: "timer, 100rel"
sip::allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, INFO
sip::allow_str: "INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, INFO"
nua::appl_method: "INVITE, REGISTER, PUBLISH, SUBSCRIBE"
sip::user_agent: svd VoIP agent
sip::user_agent_str: "svd VoIP agent"
nua::user_agent: "svd VoIP agent"
nua::keepalive: 120000
nua::outbound: "gruuize no-outbound validate natify use-rport options-keepalive"
nua::detect_network_updates: 2
nta::contact: <sip:89.131.XX.XXX>
nta::udp_mtu: 1300
nta::max_proceeding: 4294967295
nta::sip_t1: 500
nta::sip_t2: 4000
nta::sip_t4: 5000
nta::sip_t1x64: 32000
nta::debug_drop_prob: 0
nta::default_proxy: <null>
nta::aliases: <NONE>
nta::sipflags: 2
soa::af: 3
soa::srtp_enable: false
soa::srtp_confidentiality: false
soa::srtp_integrity: false
  ^^^^ svd_r_get_params() ^^^^
^^^^ svd_nua_callback() ^^^^
sres_resolver_receive(0x9e2b68, 27) called
AUTHORITY RR received ya.com. SOA IN 117 rdlen=57
sres(q=0x9e7668): reporting error NAME_ERR for NAPTR voipd.ya.com
sres_cache_get(0x9e2ce0, SRV, "_sip._udp.voipd.ya.com.") called
nta: for "voipd.ya.com" query "_sip._udp.voipd.ya.com" SRV
sres_query(0x9e2b68, 0x9e74f0, SRV, "_sip._udp.voipd.ya.com") called
sres_send_dns_query(0x9e2b68, 0x9e7840) called
sres_send_dns_query(0x9e2b68, 0x9e7840) id=13562 SRV _sip._udp.voipd.ya.com (to [127.0.0.1]:53)
sres_resolver_receive(0x9e2b68, 27) called
AUTHORITY RR received ya.com. SOA IN 117 rdlen=57
sres(q=0x9e7840): reporting error NAME_ERR for SRV _sip._udp.voipd.ya.com
sres_cache_get(0x9e2ce0, AAAA, "voipd.ya.com.") called
nta: for "voipd.ya.com" query "voipd.ya.com" AAAA
sres_query(0x9e2b68, 0x9e74f0, AAAA, "voipd.ya.com") called
sres_send_dns_query(0x9e2b68, 0x9e7988) called
sres_send_dns_query(0x9e2b68, 0x9e7988) id=13563 AAAA voipd.ya.com (to [127.0.0.1]:53)
sres_resolver_receive(0x9e2b68, 27) called
AUTHORITY RR received ya.com. SOA IN 300 rdlen=57
sres(q=0x9e7988): reporting error NAME_ERR for AAAA voipd.ya.com
nta(0x9e74f0): voipd.ya.com A record still unresolved
sres_cache_get(0x9e2ce0, A, "voipd.ya.com.") called
nta: for "voipd.ya.com" query "voipd.ya.com" A
sres_query(0x9e2b68, 0x9e74f0, A, "voipd.ya.com") called
sres_send_dns_query(0x9e2b68, 0x9e7668) called
sres_send_dns_query(0x9e2b68, 0x9e7668) id=13564 A voipd.ya.com (to [127.0.0.1]:53)
sres_resolver_receive(0x9e2b68, 27) called
AUTHORITY RR received ya.com. SOA IN 117 rdlen=57
sres(q=0x9e7668): reporting error NAME_ERR for A voipd.ya.com
nta: timer set to 32000 ms
nta: timer shortened to 5000 ms
nua: nua_application_event: entering
vvvv svd_nua_callback() vvvv
Event : nua_r_unregister
---[ SIP ]---
503 DNS Error (CSeq 12698117 REGISTER)
        From: <sip:93XXXXXXX@voipd.ya.com>
        To: <sip:93XXXXXXX@voipd.ya.com>
---[ === ]---
  vvvv svd_r_register() vvvv
UN-REGISTER: 503 DNS Error
nua: nua_handle_destroy: entering
nua(0x9e5f20): sent signal r_destroy
  ^^^^ svd_r_register() ^^^^
^^^^ svd_nua_callback() ^^^^
nua(0x9e5f20): removing register usage
nta_leg_destroy(0x9e6bf0)
nta_leg_destroy((nil))
soa_destroy(static::0x9e61c8) called
nta: timer K fired, terminate REGISTER (12698117)
outgoing_reclaim_all((nil), (nil), 0x2b9c01bc)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free
nta: timer not set
root@OpenWrt:/etc/config# Retrying registration to sip:voipd.ya.com, user_URI sip:93XXXXXXX@voipd.ya.com
vvvv svd_register() vvvv
nua: nh_create_handle: entering
nua: nua_handle_bind: entering
nua: nua_register: entering
nua(0x9e7610): sent signal r_register
^^^^ svd_register() ^^^^
nua: nua_stack_set_params: entering
soa_clone(static::0x9e1140, 0x9decc0, 0x9e7610) called
soa_set_params(static::0x9e6118, ...) called
soa_set_params(static::0x9e6118, ...) called
nua(0x9e7610): adding register usage
nta_leg_tcreate(0x9e80b0)
nta: selecting scheme sip
sres_cache_get(0x9e2ce0, NAPTR, "voipd.ya.com.") called
sres_cache_get(0x9e2ce0, NAPTR, "voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "voipd.ya.com" NAPTR (cached)
sres_cache_get(0x9e2ce0, SRV, "_sip._udp.voipd.ya.com.") called
sres_cache_get(0x9e2ce0, SRV, "_sip._udp.voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "_sip._udp.voipd.ya.com" SRV (cached)
sres_cache_get(0x9e2ce0, AAAA, "voipd.ya.com.") called
sres_cache_get(0x9e2ce0, AAAA, "voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "voipd.ya.com" AAAA (cached)
nta(0x9e6d20): voipd.ya.com A record still unresolved
sres_cache_get(0x9e2ce0, A, "voipd.ya.com.") called
sres_cache_get(0x9e2ce0, A, "voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "voipd.ya.com" A (cached)
nta: timer set to 32000 ms
nta: timer shortened to 5000 ms
nua: nua_application_event: entering
vvvv svd_nua_callback() vvvv
Event : nua_r_register
---[ SIP ]---
503 DNS Error (CSeq 12698132 REGISTER)
        From: <sip:93XXXXXXX@voipd.ya.com>
nua(0x9e7610): removing register usage
nta_leg_destroy(0x9e80b0)
        To: <sip:93XXXXXXX@voipd.ya.com>
---[ === ]---
  vvvv svd_r_register() vvvv
REGISTER: 503 DNS Error
nua: nua_handle_destroy: entering
nua(0x9e7610): sent signal r_destroy
  ^^^^ svd_r_register() ^^^^
^^^^ svd_nua_callback() ^^^^
nta_leg_destroy((nil))
soa_destroy(static::0x9e6118) called
vvvv svd_atab_handler() vvvv
Got fxs offhook event: 0x0 on [0/1]
  vvvv svd_handle_event_FXS_OFFHOOK() vvvv
    vvvv svd_answer() vvvv
    ^^^^ svd_answer() ^^^^
play dialtone on [00]
  ^^^^ svd_handle_event_FXS_OFFHOOK() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
  vvvv svd_handle_event_FXS_DIGIT_X() vvvv
[00] DIGIT '6'(l:1,n:0)HN:(nil)
    vvvv svd_handle_digit() vvvv
    ^^^^ svd_handle_digit() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_DIGIT_X() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
Got tone event: 0x2 on [0/1]
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
  vvvv svd_handle_event_FXS_DIGIT_X() vvvv
[00] DIGIT '7'(l:1,n:0)HN:(nil)
    vvvv svd_handle_digit() vvvv
    ^^^^ svd_handle_digit() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_DIGIT_X() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
  vvvv svd_handle_event_FXS_DIGIT_X() vvvv
[00] DIGIT '0'(l:1,n:0)HN:(nil)
    vvvv svd_handle_digit() vvvv
    ^^^^ svd_handle_digit() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_DIGIT_X() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
  vvvv svd_handle_event_FXS_DIGIT_X() vvvv
[00] DIGIT '2'(l:1,n:0)HN:(nil)
    vvvv svd_handle_digit() vvvv
    ^^^^ svd_handle_digit() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_DIGIT_X() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
  vvvv svd_handle_event_FXS_DIGIT_X() vvvv
[00] DIGIT '5'(l:1,n:0)HN:(nil)
    vvvv svd_handle_digit() vvvv
    ^^^^ svd_handle_digit() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_DIGIT_X() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
  vvvv svd_handle_event_FXS_DIGIT_X() vvvv
[00] DIGIT '5'(l:1,n:0)HN:(nil)
    vvvv svd_handle_digit() vvvv
    ^^^^ svd_handle_digit() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_DIGIT_X() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
  vvvv svd_handle_event_FXS_DIGIT_X() vvvv
[00] DIGIT '3'(l:1,n:0)HN:(nil)
    vvvv svd_handle_digit() vvvv
    ^^^^ svd_handle_digit() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_DIGIT_X() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
  vvvv svd_handle_event_FXS_DIGIT_X() vvvv
[00] DIGIT '3'(l:1,n:0)HN:(nil)
    vvvv svd_handle_digit() vvvv
    ^^^^ svd_handle_digit() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_DIGIT_X() ^^^^
^^^^ svd_atab_handler() ^^^^
nta: timer K fired, terminate REGISTER (12698132)
outgoing_reclaim_all((nil), (nil), 0x2b9c01bc)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free
nta: timer not set
vvvv svd_atab_handler() vvvv
  vvvv svd_handle_event_FXS_DIGIT_X() vvvv
[00] DIGIT '8'(l:1,n:0)HN:(nil)
    vvvv svd_handle_digit() vvvv
    ^^^^ svd_handle_digit() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_DIGIT_X() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_invite_to() vvvv
^^^^ svd_invite_to() ^^^^
vvvv svd_atab_handler() vvvv
Got fxs onhook event: 0x0 on [0/1]
  vvvv svd_handle_event_FXS_ONHOOK() vvvv
    vvvv svd_bye() vvvv
      vvvv svd_clear_call() vvvv
      ^^^^ svd_clear_call() ^^^^
    ^^^^ svd_bye() ^^^^
stop playing tone on [00]
  ^^^^ svd_handle_event_FXS_ONHOOK() ^^^^
^^^^ svd_atab_handler() ^^^^
vvvv svd_atab_handler() vvvv
Got tone event: 0x2 on [0/1]
^^^^ svd_atab_handler() ^^^^
Retrying registration to sip:voipd.ya.com, user_URI sip:93XXXXXXX@voipd.ya.com
vvvv svd_register() vvvv
nua: nh_create_handle: entering
nua: nua_handle_bind: entering
nua: nua_register: entering
nua(0x9e7610): sent signal r_register
^^^^ svd_register() ^^^^
nua: nua_stack_set_params: entering
soa_clone(static::0x9e1140, 0x9decc0, 0x9e7610) called
soa_set_params(static::0x9e6108, ...) called
soa_set_params(static::0x9e6108, ...) called
nua(0x9e7610): adding register usage
nta_leg_tcreate(0x9e8160)
nta: selecting scheme sip
sres_cache_get(0x9e2ce0, NAPTR, "voipd.ya.com.") called
sres_cache_get(0x9e2ce0, NAPTR, "voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "voipd.ya.com" NAPTR (cached)
sres_cache_get(0x9e2ce0, SRV, "_sip._udp.voipd.ya.com.") called
sres_cache_get(0x9e2ce0, SRV, "_sip._udp.voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "_sip._udp.voipd.ya.com" SRV (cached)
sres_cache_get(0x9e2ce0, AAAA, "voipd.ya.com.") called
sres_cache_get(0x9e2ce0, AAAA, "voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "voipd.ya.com" AAAA (cached)
nta(0x9e6db0): voipd.ya.com A record still unresolved
sres_cache_get(0x9e2ce0, A, "voipd.ya.com.") called
sres_cache_get(0x9e2ce0, A, "voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "voipd.ya.com" A (cached)
nta: timer set to 32000 ms
nta: timer shortened to 5000 ms
nua: nua_application_event: entering
vvvv svd_nua_callback() vvvv
Event : nua_r_register
---[ SIP ]---
503 DNS Error (CSeq 12698147 REGISTER)
        From: <sip:93XXXXXXX@voipd.ya.com>
        To: <sip:93XXXXXXX@voipd.ya.com>
---[ === ]---
  vvvv svd_r_register() vvvv
REGISTER: 503 DNS Error
nua: nua_handle_destroy: entering
nua(0x9e7610): sent signal r_destroy
  ^^^^ svd_r_register() ^^^^
^^^^ svd_nua_callback() ^^^^
nua(0x9e7610): removing register usage
nta_leg_destroy(0x9e8160)
nta_leg_destroy((nil))
soa_destroy(static::0x9e6108) called
nta: timer K fired, terminate REGISTER (12698147)
outgoing_reclaim_all((nil), (nil), 0x2b9c01bc)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free
nta: timer not set
Retrying registration to sip:voipd.ya.com, user_URI sip:93XXXXXXX@voipd.ya.com
vvvv svd_register() vvvv
nua: nh_create_handle: entering
nua: nua_handle_bind: entering
nua: nua_register: entering
nua(0x9e7610): sent signal r_register
^^^^ svd_register() ^^^^
nua: nua_stack_set_params: entering
soa_clone(static::0x9e1140, 0x9decc0, 0x9e7610) called
soa_set_params(static::0x9e6118, ...) called
soa_set_params(static::0x9e6118, ...) called
nua(0x9e7610): adding register usage
nta_leg_tcreate(0x9e6298)
nta: selecting scheme sip
sres_cache_get(0x9e2ce0, NAPTR, "voipd.ya.com.") called
sres_cache_get(0x9e2ce0, NAPTR, "voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "voipd.ya.com" NAPTR (cached)
sres_cache_get(0x9e2ce0, SRV, "_sip._udp.voipd.ya.com.") called
sres_cache_get(0x9e2ce0, SRV, "_sip._udp.voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "_sip._udp.voipd.ya.com" SRV (cached)
sres_cache_get(0x9e2ce0, AAAA, "voipd.ya.com.") called
sres_cache_get(0x9e2ce0, AAAA, "voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "voipd.ya.com" AAAA (cached)
nta(0x9e7378): voipd.ya.com A record still unresolved
sres_cache_get(0x9e2ce0, A, "voipd.ya.com.") called
sres_cache_get(0x9e2ce0, A, "voipd.ya.com.") returned 1 entries
nta: for "voipd.ya.com" query "voipd.ya.com" A (cached)
nta: timer set to 32000 ms
nta: timer shortened to 5000 ms
nua: nua_application_event: entering
vvvv svd_nua_callback() vvvv
Event : nua_r_register
---[ SIP ]---
503 DNS Error (CSeq 12698162 REGISTER)
        From: <sip:93XXXXXXX@voipd.ya.com>
        To: <sip:9328

(Last edited by jjb_wii on 23 May 2011, 14:14)

jjb_wii wrote:

Now, svd allow me to listen tone, type and dial numbers but there are some problem because the call does not reach the destination.... I don't know if there are some problem about ya.com autentification.....

As you can see from the log, it cannot authenticate because it doesn't find voipd.ya.com:

sres(q=0x9e7668): reporting error NAME_ERR for A voipd.ya.com
nta: timer set to 32000 ms
nta: timer shortened to 5000 ms
nua: nua_application_event: entering
vvvv svd_nua_callback() vvvv
Event : nua_r_unregister
---[ SIP ]---
503 DNS Error (CSeq 12698117 REGISTER)
        From: <sip:93XXXXXXX@voipd.ya.com>
        To: <sip:93XXXXXXX@voipd.ya.com>
---[ === ]---
  vvvv svd_r_register() vvvv
UN-REGISTER: 503 DNS Error
nua: nua_handle_destroy: entering
nua(0x9e5f20): sent signal r_destroy
  ^^^^ svd_r_register() ^^^^
^^^^ svd_nua_callback() ^^^^
nua(0x9e5f20): removing register usage
nta_leg_destroy(0x9e6bf0)
nta_leg_destroy((nil))
soa_destroy(static::0x9e61c8) called
nta: timer K fired, terminate REGISTER (12698117)
outgoing_reclaim_all((nil), (nil), 0x2b9c01bc)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free
nta: timer not set
root@OpenWrt:/etc/config# Retrying registration to sip:voipd.ya.com, user_URI sip:93XXXXXXX@voipd.ya.com

and so on, and so forth.

You can check the status of the registrations with the command

echo "get_regs[]" | svd_if

(it's better to do it from another console, to avoid mixing it with debug output)

jjb_wii wrote:

perhaps I need the option of proxy outgoing  or the STUNTS servers....

It shouldn't be needed, sofia-sip should detect them by itself (I had no problem with justvoip and ekiga behind a nat).

jjb_wii wrote:

Related to the ingoing calls, At first I obtained the "voice message box" of ya.com but after I change some account settings, the svd picked up the call and show me the "ACK" acknowledge response by a log message (svd -d9) ACK 89.131.XX.XXX:5060 but no phone ring and the call was cut.

because the call cannot be identified:

INCOMING CALL TO  sip:(null)@89.131.XX.XXX

no account, so svd cannot determine which account should be associated with the call.
For it to work the call should come in directed at "sip:+3493XXXXXXX@voipd.ya.com".
Maybe there is another way to identify the account, alas I don't know it (otherwise I would have already put in in svd).

Try using

option registrar "proxy.voip.ya.com"

in your yacom account configuration

@Pipollini, Thanks for the help.

Here you are my sip yacom settings working with another android SIP Client(CSipSimple):

Account name:      +3493XXXXXXX
account ID:        +3493XXXXXXX<sip:+3493XXXXXXX@voipd.ya.com>
Registration URI:  sip:voipd.ya.com
Realm:             *
Username(login):   93XXXXXXX
Data(Password) :   mypassword1
Data Type:         Plain password
Scheme:            DIGEST
TRANSPORTE:        UDP
Publish enabled:   -
register Timeout:  4500
Force contact:     -
Allow contact rewrite: -
Contact rewrite method: Normal
Proxy URI:       sip:proxy.voip.ya.com
SRTP mode :      Optional

---> Menu Tools of  CSipSimple:

Resolver DNS SRV :  Activado
Usar STUN: Activado
STUN servers: proxy.voip.ya.com

Related to the SVD/Sofia-sip I have tried without success with:

config main             
     option log_level 5            
     option rtp_port_first 5000    
     option rtp_port_last 6000    
     option sip_tos 0x10        
     option rtp_tos 0x10
    
config account voip1          
     option user "+3493XXXXXXX"       
     option domain "voipd.ya.com" 
#   option auth_user "93XXXXXXX"        
     option auth_name "93XXXXXXX"   (I use this option because Username(login)=user should be diferent that account ID=auth_user, see working sip data/config above )
     option password "mypassword1"
     option registrar "voipd.ya.com"
#   option registrar "proxy.voip.ya.com"
     option dtmf "rfc2883"    
     option codecs "g729 pcma"

What would be the correct settings? related to your last post, perhaps I should use:

config main             
     option log_level 5            
     option rtp_port_first 5000    
     option rtp_port_last 6000    
     option sip_tos 0x10        
     option rtp_tos 0x10
    
config account voip1          
     option user "+3493XXXXXXX"       
     option domain "voipd.ya.com" 
     option auth_name "93XXXXXXX"    ( I dont' know...perhaps I should use auth_user .... but then I see in the svd log <sip:93XXXXXXX@voipd.ya.com> instead of <sip:+3493XXXXXXX@voipd.ya.com> )
     option password "mypassword1"
     option registrar "proxy.voip.ya.com"
     option dtmf "rfc2883"
     option codecs "g729 pcma"

(Last edited by jjb_wii on 23 May 2011, 21:30)

The last setting should be the correct one, but I read the yacom server is very strict, so maybe there's something else that escapes me.
Note that there's no "auth_user" option but only "auth_name".
Note also that, even if it works for registration (which I don't know), it won't work for incoming calls, unless they have a "to: <sip:+343XXXXXXX@voipd.ya.com>" header (though I could work around that by, e.g., interpreting unidentified calls as coming from the first account.

Edit: basically, the settings are like this:

user and domain are combined to build the sip uri ("from") in the form "sip:user@domain".
For authentication, auth_user will be used if present, otherwise user will be used instead.
For registration, registrar will be used if present ("sip:registrar"), otherwise it will fall back to domain ("sip:domain").
Since in your case each of them is different, you have to define all of them (user, domain, auth_user and registrar).

Edit2: and maybe yacom also needs the display name, however I don't know (yet) how to set it in sofia-sip.

(Last edited by pippolippi on 23 May 2011, 22:50)

I have been investigating svd and sofia source code.

By one site, it seems that the uci parameters takes the "auth_name" value, not the documented "auth_user"......I need confirmation about it...

On the other hand I have found in the "svd.c" file some tag about PROXY URI, perhaps I could add one line...:

/* launch the SIP stack */
    /* *
     * NUTAG_AUTOANSWER (1)
     * NUTAG_PROXY (),
     * NUTAG_AUTH ("scheme""realm""user""password"),
     * NUTAG_AUTHTIME (3600),
     * NUTAG_M_DISPLAY (),
     * */
    //tos = g_conf.sip_tos & IPTOS_TOS_MASK;
    tos = g_conf.sip_tos & 0xFF;
    svd->nua = nua_create (svd->root, svd_nua_callback, svd,
            SIPTAG_USER_AGENT_STR ("svd VoIP agent"),
            SOATAG_AF (SOA_AF_IP4_IP6),
            TPTAG_TOS (tos),
             NUTAG_ALLOW ("INFO"),
            NUTAG_AUTOALERT (1),
            NUTAG_ENABLEMESSAGE (1),
            NUTAG_ENABLEINVITE (1),
            NUTAG_DETECT_NETWORK_UPDATES (NUA_NW_DETECT_TRY_FULL), 
            NUTAG_PROXY ("proxy.voip.ya.com"),     //<-- hardcoded test PROXY URI added
            TAG_NULL () );
    if (!svd->nua) {
        SU_DEBUG_0 (("Network is not initialized\n"));
        goto __exit_fail;
    }

    nua_set_params(svd->nua,
              NUTAG_OUTBOUND ("gruuize no-outbound validate "
                      "natify use-rport options-keepalive"),
              TAG_NULL () );

    svd_refresh_registration (svd);
    nua_get_params(svd->nua, TAG_ANY(), TAG_NULL());

How would I compile the svd package with this setting ? only for testing purposes...Is it difficult?...

(Last edited by jjb_wii on 24 May 2011, 17:06)

jjb_wii wrote:

By one site, it seems that the uci parameters takes the "auth_name" value, not the documented "auth_user"......I need confirmation about it...

pippolippi wrote:

Note that there's no "auth_user" option but only "auth_name".

I see that I correctly documented auth_name but in the example I used auth_user, I fixed that.


jjb_wii wrote:

On the other hand I have found in the "svd.c" file some tag about PROXY URI, perhaps I could add one line...:

/* launch the SIP stack */
    /* *
     * NUTAG_AUTOANSWER (1)
     * NUTAG_PROXY (),
     * NUTAG_AUTH ("scheme""realm""user""password"),
     * NUTAG_AUTHTIME (3600),
     * NUTAG_M_DISPLAY (),
     * */
    //tos = g_conf.sip_tos & IPTOS_TOS_MASK;
    tos = g_conf.sip_tos & 0xFF;
    svd->nua = nua_create (svd->root, svd_nua_callback, svd,
            SIPTAG_USER_AGENT_STR ("svd VoIP agent"),
            SOATAG_AF (SOA_AF_IP4_IP6),
            TPTAG_TOS (tos),
             NUTAG_ALLOW ("INFO"),
            NUTAG_AUTOALERT (1),
            NUTAG_ENABLEMESSAGE (1),
            NUTAG_ENABLEINVITE (1),
            NUTAG_DETECT_NETWORK_UPDATES (NUA_NW_DETECT_TRY_FULL), 
            NUTAG_PROXY ("proxy.voip.ya.com"),     //<-- hardcoded test PROXY URI added
            TAG_NULL () );
    if (!svd->nua) {
        SU_DEBUG_0 (("Network is not initialized\n"));
        goto __exit_fail;
    }

    nua_set_params(svd->nua,
              NUTAG_OUTBOUND ("gruuize no-outbound validate "
                      "natify use-rport options-keepalive"),
              TAG_NULL () );

    svd_refresh_registration (svd);
    nua_get_params(svd->nua, TAG_ANY(), TAG_NULL());

How would I compile the svd package with this setting ? only for testing purposes...Is it difficult?...

It's not difficult, but you don't want to do that (I don't think you need the outgoing proxy), defining "registrar" should accomplish what you want.

Anyway, to build it you need the openwrt build system (i.e. a checked out version of openwrt), put the "libab", "svd" and "sofia-sip" directories of the danube-voip project under "openwrt/trunk/package" (where "openwrt/trunk" is where you checked out openwrt sources), then in "openwrt/trunk" run "make menuconfig" and select the lantiq platform,  then "make package/svd/compile V=99" should build a new svd package in "openwrt/trunk/bin/lantiq/packages".

If it works, I'll try to code a proper fix (i.e., setting the outgoing proxy per account).
BTW, please try to put the NUTAG_PROXY tag in the call to nua_register (line 575 of svd_ua.c) instead of nua_create as you did.

Edit: in the default firmware, is the "Use outbound proxy" checkbox checked?

Edit2: according to this post http://www.elastix.org/es/component/kunena/11/20434/ it shouldn't be using the outboung proxy. What's probably missing is the display name (it seems yacom needs it for the caller id).

(Last edited by pippolippi on 24 May 2011, 17:54)

My sip configuration is the same as you shown in your attached link (http://www.elastix.org/es/component/kunena/11/20434/).

I have been playing with my CSipSimple SIP configuration (the router SIP configuration not show all parameters...some data is hardcoded inside javascript....).


I think, the two servers(defined below) are diferent.... I don't know, perhaps the "voip_account[0].outbound_proxy" is the PROXY URI and the "voip_account[0].proxy" is the STUNT Server. I need some light on it. 

voip_account[0].proxy="proxy.voip.ya.com";
voip_account[0].outbound_proxy="";


In one of my test I got it to work without the DisplayName ..... but by the moment I have not achieved to make it works without Proxy server and STUN server defined......  finally the yacom voip service has gone down or perhaps my account is blocked .....now my sip voip not works. 

Edit:Now the service is working again smile.  I can continue with my testing.

Edit2: Now the service fails again. I'll have to wait a few minutes ...it is a strange behavior...

On the other hand, I am compiling svd....but it needs some work still....tomorrow....

jose@pandiel:~/tmp/OpenWrt/trunk$ make -j 3  package/svd/compile V=99
make[1]: Entering directory `/home/jose/tmp/OpenWrt/trunk'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/package/ltq-ifxos'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/feeds/packages/libs/gettext'
WARNING: skipping libintl -- package not selected
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/feeds/packages/libs/libiconv'
WARNING: skipping libiconv -- package not selected
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/package/ltq-ifxos'
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/feeds/packages/libs/gettext'
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/feeds/packages/libs/libiconv'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/package/libtool'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/package/sofia-sip'
WARNING: skipping sofia-sip -- package not selected
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/package/libtool'
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/package/sofia-sip'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/package/lua'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/package/ltq-tapi'
WARNING: skipping luac -- package not selected
WARNING: skipping lua-examples -- package not selected
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/package/lua'
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/package/ltq-tapi'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/package/uci'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/package/ltq-vmmc'
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/package/uci'
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/package/ltq-vmmc'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/package/libab'
WARNING: skipping libab -- package not selected
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/package/libab'
make[2]: Entering directory `/home/jose/tmp/OpenWrt/trunk/package/svd'
WARNING: skipping svd -- package not selected
CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/drv_tapi -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libab -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libconfig -DDONT_BIND_TO_DEVICE=1  -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/include -I/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/usr/include -I/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/include " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/drv_tapi -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libab -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libconfig -DDONT_BIND_TO_DEVICE=1  -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/include -I/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/usr/include -I/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/include " LDFLAGS="-L/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib -L/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/lib -L/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/lib " make -j1 -C /home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd/. AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/drv_tapi -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libab -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libconfig -DDONT_BIND_TO_DEVICE=1" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" ARCH="mips" ;
make[3]: Entering directory `/home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd'
make  all-recursive
make[4]: Entering directory `/home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd'
Making all in src
make[5]: Entering directory `/home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd/src'
mips-openwrt-linux-uclibc-gcc  -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/drv_tapi -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libab -I/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/include/libconfig -DDONT_BIND_TO_DEVICE=1   -L/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib -L/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/lib -L/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/lib  -o svd svd_cfg.o svd_ua.o svd_atab.o svd_engine_if.o svd_server_if.o svd.o -lpthread -L. -L/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr//lib -lsofia-sip-ua   -luci -lucimap -lab
/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.2/../../../../mips-openwrt-linux-uclibc/bin/ld: warning: libssl.so.1.0.0, needed by /home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so, not found (try using -rpath or -rpath-link)
/home/jose/tmp/OpenWrt/trunk/staging_dir/toolchain-mips_r2_gcc-linaro_uClibc-0.9.32/lib/gcc/mips-openwrt-linux-uclibc/4.5.2/../../../../mips-openwrt-linux-uclibc/bin/ld: warning: libcrypto.so.1.0.0, needed by /home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so, not found (try using -rpath or -rpath-link)
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `TLSv1_method'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_set_ex_data'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_connect'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_STORE_CTX_set_error'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_set_bio'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `BIO_free'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_client_CA_list'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `TLSv1_client_method'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `BIO_ctrl'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_STORE_CTX_get_error'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_NAME_oneline'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_verify'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `RAND_load_file'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `sk_value'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_ctrl'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_load_error_strings'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_get_ext_count'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_check_private_key'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509V3_EXT_d2i'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_get_peer_certificate'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_get_subject_name'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_free'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_default_passwd_cb_userdata'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `ERR_lib_error_string'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_NAME_get_text_by_NID'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_new'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_get_verify_result'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_read'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_set_fd'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_session_id_context'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_pending'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_verify_cert_error_string'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `OBJ_nid2sn'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_get_current_cipher'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_get_ext'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_load_client_CA_file'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_load_verify_locations'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `BIO_new_socket'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CIPHER_get_name'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `ERR_get_error'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `ERR_func_error_string'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `ERR_reason_error_string'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_verify_depth'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `sk_num'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_use_PrivateKey_file'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_library_init'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_default_passwd_cb'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_use_certificate_file'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_get_ex_data'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_STORE_CTX_get_current_cert'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_STORE_CTX_get_ex_data'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_set_cipher_list'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_new'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_write'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `RAND_pseudo_bytes'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `HMAC'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509V3_EXT_get'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_get_ex_data_X509_STORE_CTX_idx'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_free'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_accept'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_get_ex_new_index'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `ERR_error_string_n'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_shutdown'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_get_shutdown'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_get_issuer_name'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_EXTENSION_get_object'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `X509_STORE_CTX_get_error_depth'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `EVP_sha1'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_get_error'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSL_CTX_free'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `OBJ_obj2nid'
/home/jose/tmp/OpenWrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.32/usr/lib/libsofia-sip-ua.so: undefined reference to `SSLv23_method'
collect2: ld returned 1 exit status
make[5]: *** [svd] Error 1
make[5]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd/src'
make[5]: Entering directory `/home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd'
make[2]: *** [/home/jose/tmp/OpenWrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/svd/.built] Error 2
make[2]: Leaving directory `/home/jose/tmp/OpenWrt/trunk/package/svd'
make[1]: *** [package/svd/compile] Error 2
make[1]: Leaving directory `/home/jose/tmp/OpenWrt/trunk'
make: *** [package/svd/compile] Error 2
jose@pandiel:~/tmp/OpenWrt/trunk$

(Last edited by jjb_wii on 24 May 2011, 23:11)

jjb_wii wrote:

My sip configuration is the same as you shown in your attached link (http://www.elastix.org/es/component/kunena/11/20434/).

OK, so the outbound proxy shouldn't be necessary

jjb_wii wrote:

I have been playing with my CSipSimple SIP configuration (the router SIP configuration not show all parameters...some data is hardcoded inside javascript....).


I think, the two servers(defined below) are diferent.... I don't know, perhaps the "voip_account[0].outbound_proxy" is the PROXY URI and the "voip_account[0].proxy" is the STUNT Server. I need some light on it. 

voip_account[0].proxy="proxy.voip.ya.com";
voip_account[0].outbound_proxy="";

"proxy" here is the same as "registrar" in svd, outbound proxy is not defined, so probably is not used. But since the stock firmware is a steaming pile of shit, who knows, maybe it's the other way around.


jjb_wii wrote:

In one of my test I got it to work without the DisplayName ..... but by the moment I have not achieved to make it works without Proxy server and STUN server defined......

You need the STUN server because you're behind a NAT, when you run svd on the router it's not behind a nat, so stun is not needed (anyway, sofia-sip should detect it automatically). BTW, STUN and outbound-proxy are mutually exclusive.

jjb_wii wrote:

finally the yacom voip service has gone down or perhaps my account is blocked .....now my sip voip not works. 

Edit:Now the service is working again smile.  I can continue with my testing.

Edit2: Now the service fails again. I'll have to wait a few minutes ...it is a strange behavior...

It's not strange, it's yacom wink
worst thing I did in my life was to subscribe to their service, best thing I did was to run away from them big_smile

jjb_wii wrote:

On the other hand, I am compiling svd....but it needs some work still....tomorrow....

I'm not an openwrt build system expert, I can only say that it works here, it's possible that I did something wrong in the Makefile of sofia-sip and it works here by accident.
Maybe you could try to select svd in "make menuconfig" (which should automatically select sofia-sip, libab, vmmc, ifxos, etc.) and try to build an image?

@pippolippi


Finally I have finished the svd compilation smile .....it has been necessary to add manually the 'libssl.so' and the 'libcrypto.so' libraries in the next Makefile:


......\trunk\build_dir\target-mips_r2_uClibc-0.9.32\svd\src\Makefile :

svd_LDADD = -lpthread -L. ${SOFIA_SIP_UA_LIBS} -luci -lucimap -lab -lssl -lcrypto


Now I have got generated the packages:

svd_1-2_lantiq.ipk                    41Kb
libab_1-1_lantiq.ipk                  1Kb
sofia-sip_1.12.11-1_lantiq.ipk    469Kb

(Last edited by jjb_wii on 25 May 2011, 21:46)

Oh, well, I think in my system sofia-sip compiled without ssl support, but in case it found ssl libraries it should include all needed libs in SOFIA_SIP_UA_LIBS.

Steps to configure openWrt from memory:  (boot loading, kernel loading, USB, DSL, SSH (second router with wifi only for AccessPoint/Gateway purposes) and svd)

1)  Connect the serial port (wait for it to install)
2)  start hyperterminal and select "saved_session1.ht"
3)  Wait for something on the screen.
4)  reboot and press some keys 123 and !
5)  send the u-boot and choose (M load to Memory)
6)  connect ethenet cable
7)  Press Yes and then when the switch 8216 config countdown begins, you press any key.
8)  Start tftp server win7
9)  upload by tftp the kernel and load. (Tftp 0x80800000 openwrt-Lantiq-XWAY-ARV7518PW-uImage)
10) bootm 0x80800000
11) connect the usb.
12) mkdir /mnt/DiscoC
13) mount /dev/sda1 /mnt/DiscoC
14) cp /mnt/DiscoC/openwrt/network  /etc/config/network ("network" working in external usb storage,with ip 192.168.2.1, DSL config)
15) cd /etc/init.d 
16)./Network restart  (network restart.)
17) Now connect the ethernet cable to the second router to use the wifi.
18) Now USR9106 wifi network is working.
19) http://192.168.2.1 (root password)
20) http://192.168.2.1 (web menu system-> Administration and put password)
21) Now you can access via ssh with putty. (by wifi if you want.... telnet is used by my second router...)
22) cp /mnt/DiscoC/openwrt/adsl/ModemHWE.bin /lib/firmware  (We copy the adsl firmware in the usb storage, we have copied previously )
23) cd /etc/init.d
24) ./br2684ctl restart
25) ./ifx_cpe_control_init.sh  restart
26) ping www.google.es  (Internet access working)
27) Now install the SIP client (svd,sofia) packages.
28) rmdir /overlay
29) mkdir /mnt/DiscoC/overlay2
30) ln -s /mnt/DiscoC/overlay2 /overlay (need for writing permissions ...)
31) cd /mnt/DiscoC/openwrt/voip/SVD_pkg/PROXY
32) opkg install sofia-sip_1.12.11-1_lantiq.ipk svd_1-2_lantiq.ipk
33) cp svd_personal_config /etc/config/svd
34) /etc/init.d/svd

(Last edited by jjb_wii on 26 May 2011, 22:14)

It's much simpler if you generate a custom image with everything you need wink
You could then skip steps 11 to 34.

I think, I know how to change the network and the svd config file...

but I don't know how to mount the folders of the usb and to make it work the ModemHWE.bin(I select it in menunconfig but it does not appear in the uImage )

Related to my last night "test session" ..... it seems the "proxy" test does not works (svd_ua.c):

    if (account->op_reg) {
            nua_register(account->op_reg, 
                NUTAG_REGISTRAR(account->registrar),
                NUTAG_PROXY("proxy.voip.ya.com"),
                TAG_NULL());
    }

It seems the original version works something better....perhaps with an improbed version with "displayname" option activated the it would work (NUTAG_M_DISPLAY ("+3493XXXXXXX")).

REGISTER: 200 OK
        Contact: <sip:89.XXX.XX.XXX>;expires=4500
        Contact: <sip:+3493XXXXXXX@89.XXX.XX.XXX:5060;transport=udp>;expires=235

outbound(0x65a628): FAILED to validate <sip:89.XXX.XX.XXX>
outbound(0x65a628): FAILED with 503 DNS Error
Event : nua_i_outbound
nta: timer K fired, terminate REGISTER (XXXXXX6)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/3 term, 1/3 free
nta: timer K fired, terminate REGISTER (XXXXXX7)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/2 term, 1/2 free
nta: timer K fired, terminate OPTIONS (XXXXXX6)
nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free
soa_init_sdp_connection_with_session: selected IN IP4 89.XXX.XX.XXX (a local add
ress)
nua(0x6609d0): adding session usage
soa_init_sdp_connection_with_session: using SOATAG_ADDRESS("89.XXX.XX.XXX")
nta: for "voipd.ya.com" query "voipd.ya.com" NAPTR (cached)
nta: for "voipd.ya.com" query "_sip._udp.voipd.ya.com" SRV (cached)
nta: for "voipd.ya.com" query "voipd.ya.com" AAAA (cached)
nta: for "voipd.ya.com" query "voipd.ya.com" A (cached)
nua(0x6609d0): call state changed: init -> calling, sent offer
Event : nua_i_state
CALLSTATE NAME : init
Local sdp:
v=0
o=- 361190XXXXXXXXXXXX 811XXXXXXXXXXXXX IN IP4 89.XXX.XX.XXX
s=-
c=IN IP4 89.XXX.XX.XXX
t=0 0
m=audio 5001 RTP/AVP 18 8 106
a=rtpmap:18 G729/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 telephone-event/8000
a=fmtp:106 0-16

Does the "REGISTER 200 OK" message mean I connect with YACOM VOIP? In fact, I received something ACK message when calling me with the caller id = NULL   but the phone does not ring...

(Last edited by jjb_wii on 26 May 2011, 11:31)

jjb_wii wrote:

Related to my last night "test session" ..... it seems the "proxy" test does not works (svd_ua.c):

    if (account->op_reg) {
            nua_register(account->op_reg, 
                NUTAG_REGISTRAR(account->registrar),
                NUTAG_PROXY("proxy.voip.ya.com"),
                TAG_NULL());
    }

As I suspected (though it should have worked)


jjb_wii wrote:

It seems the original version works something better....perhaps with an improbed version with "displayname" option activated the it would work (NUTAG_M_DISPLAY ("+3493XXXXXXX")).

I think I'll have to use the displayname for outgoing calls.


jjb_wii wrote:

Does the "REGISTER 200 OK" message mean I connect with YACOM VOIP?

Yes. You can also get the state of the registrations with

echo "get_regs[]" | svd_if
jjb_wii wrote:

In fact, I received something ACK message when calling me with the caller id = NULL   but the phone does not ring...

To ring the phone I have to match the incoming call to one of the accounts, and to do that I check the "to" to be equal to the user/domain set in the account. That obviously won't work if the "to" doesn't match. I asked on the sofia-sip mailing list if is there a better way.
As a test, you could try to change in svd_ua.c, function svd_i_invite, line 676 from

        if (!sip_account) {
                nua_respond(nh, SIP_500_INTERNAL_SERVER_ERROR, TAG_END());
                nua_handle_destroy(nh);
                goto __exit;
        }

to

        if (!sip_account) {
                sip_account = su_vector_item(g_conf.sip_account, 0);
        }

Can you make outgoing calls?

pippolippi wrote:

Can you make outgoing calls?

No, I can't. Here the debug messages when I call.

m=audio 5001 RTP/AVP 18 8 106
a=rtpmap:18 G729/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 telephone-event/8000
a=fmtp:106 0-16
Event : nua_r_invite
---[ SIP ]---
503 DNS Error (CSeq 12845900 INVITE)
        From: <sip:+3493XXXXXXX@voipd.ya.com>   <-------------------- Home phone number
        To: <sip:670XXXXXX@voipd.ya.com>        <-------------------- Mobile number
---[ === ]---
got answer on INVITE: 503 DNS Error
nua(0x6609d0): call state changed: calling -> init
nua(0x6609d0): removing session usage
Event : nua_i_state
CALLSTATE NAME : init
call on [00] terminated          <------------------fails.....
playing busy tone on [00]
soa_init_sdp_connection_with_session: selected IN IP4 89.XXX.XX.XXX (a local add
ress)
nua(0x6609d0): adding session usage
soa_init_sdp_connection_with_session: using SOATAG_ADDRESS("89.XXX.XX.XXX")
nta: for "voipd.ya.com" query "voipd.ya.com" NAPTR (cached)
nta: for "voipd.ya.com" query "_sip._udp.voipd.ya.com" SRV (cached)
nta: for "voipd.ya.com" query "voipd.ya.com" AAAA (cached)
nta: for "voipd.ya.com" query "voipd.ya.com" A (cached)
nua(0x6609d0): call state changed: init -> calling, sent offer
Event : nua_i_state
CALLSTATE NAME : init
Local sdp:
v=0
o=- 4861142802416370970 2388663362868666400 IN IP4 89.XXX.XX.XXX
s=-
c=IN IP4 89.XXX.XX.XXX
t=0 0
m=audio 5001 RTP/AVP 18 8 106
a=rtpmap:18 G729/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 telephone-event/8000
a=fmtp:106 0-16
Event : nua_r_invite
---[ SIP ]---
503 DNS Error (CSeq 12845910 INVITE)
        From: <sip:+3493XXXXXXX@voipd.ya.com>
        To: <sip:670XXXXXX@voipd.ya.com>
---[ === ]---
got answer on INVITE: 503 DNS Error

(Last edited by jjb_wii on 26 May 2011, 14:35)

jjb_wii wrote:
pippolippi wrote:

Can you make outgoing calls?

No, I can't. Here the debug messages when I call.

m=audio 5001 RTP/AVP 18 8 106
a=rtpmap:18 G729/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 telephone-event/8000
a=fmtp:106 0-16
Event : nua_r_invite
---[ SIP ]---
503 DNS Error (CSeq 12845900 INVITE)
        From: <sip:+3493XXXXXXX@voipd.ya.com>   <-------------------- Home phone number
        To: <sip:670XXXXXX@voipd.ya.com>        <-------------------- Mobile number

Effectively, voipd.ya.com doesn't exist, so it cannot be resolved.
Maybe the outbound proxy is definitely needed (I see no other way for it to work than to let yacom server to resolve its wacky domain).

Try using NUTAG_PROXY("sip:proxy.voip.ya.com") insead of NUTAG_PROXY("proxy.voip.ya.com"), i.e. add "sip:" in front of the name.

@pippolippi

First, thanks for your help.

I have implemented the two changes you proposed.

pippolippi wrote:

Try using NUTAG_PROXY("sip:proxy.voip.ya.com") insead of NUTAG_PROXY("proxy.voip.ya.com"), i.e. add "sip:" in front of the name.

and

if (!sip_account) {
                sip_account = su_vector_item(g_conf.sip_account, 0);
     }

The things has improved something.... now the telefone rings for the incoming calls but no sound (see notes below)

REGISTER: 401 Unauthorized
Server auth: Digest algorithm=MD5, nonce="a8c882bae5164cb1aff6b23f273defae39bad48ac99bb440b301a0acdf1ed79b", opaque="a8c882bae5164cb1aff6b23f273defae39bad48ac99bb440b301a0acdf1ed79b", realm="DIRECTO-YA"
Event : nua_r_register
---[ SIP ]---
200 OK (CSeq 12887482 REGISTER)
        From: <sip:+3493XXXXXXX@voipd.ya.com>
        To: <sip:+3493XXXXXXX@voipd.ya.com>
---[ === ]---
REGISTER: 200 OK
        Contact: <sip:89.XXX.XX.XXX>;expires=4500
        Contact: <sip:+3493XXXXXXX@89.XXX.XX.XXX:5060;transport=udp>;expires=2716
outbound(0x6ce100): FAILED to validate <sip:89.XXX.XX.XXX>
outbound(0x6ce100): FAILED with 200 OK
Event : nua_i_outbound
Event : nua_i_invite
---[ SIP ]---
INVITE sip:89.XXX.XX.XXX (CSeq 28126107 INVITE)
        via 84.78.3.62:5060
        From: "+34670XXXXXX" <sip:+34670XXXXXX@voipd.ya.com>   <--- mobile phone
        To: <sip:89.XXX.XX.XXX>                                <--- My WAN address
---[ === ]---
INCOMING CALL TO  sip:(null)@89.XXX.XX.XXX
Event : nua_i_state
Event : nua_i_invite
---[ SIP ]---
INVITE sip:+3493XXXXXXX@89.XXX.XX.XXX:5060;transport=udp (CSeq 28126108 INVITE)  
        via 84.78.3.62:5060
        From: "+34670XXXXXX" <sip:+34670XXXXXX@voipd.ya.com>      <--- mobile phone SIP
        To: <sip:+3493XXXXXXX@89.XXX.XX.XXX:5060;transport=udp>   <--- home phone sip...
---[ === ]---
INCOMING CALL TO  sip:+3493XXXXXXX@89.XXX.XX.XXX               <--- I think, in this moment telephone begin rings 
Event : nua_i_state
Event : nua_r_get_params
soa::local_sdp_str: "v=0
o=- 5746089403013433786 1297981100994303861 IN IP4 89.XXX.XX.XXX
s=-
c=IN IP4 89.XXX.XX.XXX
t=0 0
m=audio 5001 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
"
Event : nua_i_ack
---[ SIP ]---
ACK sip:89.XXX.XX.XXX (CSeq 28126107 ACK)                       
        via 84.78.3.62:5060
        From: "+34670XXXXXX" <sip:+34670XXXXXX@voipd.ya.com>
        To: <sip:89.XXX.XX.XXX>
---[ === ]---
Event : nua_i_state                                       <--- In this moment, do I take the home phone?
stop playing tone on [00]
Event : nua_i_active                                     <----Now the conexion is established :-) , but without sound,

HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|    HLD:492|HLD:492|    HLD:492|HLD:492|                                                      
HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|HLD:492|    
                                                          <----1 minute later, Finaly the router hangs and reset...I don't know, perhaps, the application gets in a infinite loop with this words "|HLD:492|HLD:492|" and reach memory limit.

(Last edited by jjb_wii on 27 May 2011, 09:30)

That debug message comes from svd_atab.c, function svd_media_tapi_handle_local_data, and it indicates that it couldn't identify either the remote port or the remote host, I don't know the cause yet, I'll take a look at the code later.

Edit: are you running with -d9? I don't see some messages that should be there, i.e., after "Event: nua_i_state" there shuold be a "CALLSTATE NAME: xxxx".

(Last edited by pippolippi on 27 May 2011, 10:12)

I think, with -d5

Try again with -d9
And find a better provider wink

Edit: and what about ongoing calls?
Edit2: outgoing.

(Last edited by pippolippi on 27 May 2011, 19:57)

@jjb_wii, one more thing, could you try to remove NUTAG_PROXY from the call to nua_create and put it in the call to nua_invite in svd_ua.c?
(and check that you can make calls and receive incoming calls).
If that works it will be easier to make it as an account parameter.

@pippolini, thanks for the info....I am learning every day how this application works smile .... now I have a week with many commitments, exams, work, weedings....

(Last edited by jjb_wii on 28 May 2011, 17:27)

I uploaded a new svd package that, supposedly, has support for both display name (option display) and outbound proxy (option outbound_proxy).
It also uses a new way to identify incoming calls (using the name of the account to create the Contact header, and using it instead of To:) that should be more fool proof.
OTOH I experienced a strange oops, possibly related to trying to display the caller id (a problem that I never saw before, so I'm quite surprised).