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