Menu

#108 sofia sip client with openimscore

open
nobody
5
2014-08-26
2010-05-13
wepawetmose
No

Hi, im using sofia sip client with openimscore and i need to get it communicating each other.

"...surely Expires is a nice to have header :-)
I've added it to sofsip_cli and now both Alice and Bob appear as REGISTERED in FHoSS web interface...."

well, THIS is exactly what i wanna do but dont know how!

if Starting the service:
"sofsip_cli --media-impl=dummy --registrar=sip:open-ims.test --proxy=sip:pcscf.open-ims.test:4060 "

I get:
"su_source_port_create() returns 0x90a4234
** (sofsip_cli:4350): DEBUG: ssc_media_class_init:124
** (sofsip_cli:4350): DEBUG: ssc_media_init:169
** Message: Selecting media implementation: dummy
sofsip> UA: unknown event 'nua_r_set_params' (23): 200 OK
::tag_null: 0
NOTE: destroying handle (nil).
sofsip> UA: nua_r_getparams: 200 OK
sip::from: <sip:172.16.6.159>
sip::from_str: "<sip:172.16.6.159>"
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: 0
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::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
sip::allow_str: "INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE"
nua::appl_method: "INVITE, REGISTER, PUBLISH, SUBSCRIBE"
sip::user_agent: sofia-sip/1.12.10
sip::user_agent_str: "sofia-sip/1.12.10"
nua::user_agent: "sofia-sip/1.12.10"
nua::registrar: <sip:open-ims.test>
nua::keepalive: 120000
nua::outbound: "natify"
nta::contact: <sip:172.16.6.159>
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: <sip:pcscf.open-ims.test:4060>
nta::aliases: <NONE>
nta::sipflags: 2
soa::caps_sdp: v=0
o=- 7732089869805783786 4683031078712322020 IN IP4 172.16.6.159
s=-
c=IN IP4 172.16.6.159
t=0 0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
soa::caps_sdp_str: "v=0
o=- 7732089869805783786 4683031078712322020 IN IP4 172.16.6.159
s=-
c=IN IP4 172.16.6.159
t=0 0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
"
soa::user_sdp: v=0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
soa::user_sdp_str: "v=0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
"
soa::local_sdp_str: <null>
soa::af: 3
soa::srtp_enable: false
soa::srtp_confidentiality: false
soa::srtp_integrity: false
::tag_null: 0

Starting sofsip-cli in interactive mode. Issue 'h' to get list of available commands.
sofsip>"

witch is good, so far.

then:
"addr sip:bob@open-ims.test
sofsip> UA: unknown event 'nua_r_set_params' (23): 200 OK
::tag_null: 0
NOTE: destroying handle (nil).
sofsip>
"

not so good, but works!

BUT after:
"sofsip> r
UA: REGISTER sip:bob@open-ims.test - updating existing registration
sofsip> UA: REGISTER: 401 Unauthorized - Challenging the UE
Server auth: Digest realm="open-ims.test", nonce="97FmRP9GLEaTRubVfl5/CDSc+jk9dQAAi7fVOC81s9I=", algorithm=AKAv1-MD5, qop="auth,auth-int"
Please authenticate 'Digest' with the 'k' command (e.g. 'k password', or 'k [method:realm:username:]password')
sofsip>
"
I get an error in openimscore:
"ERR: P-CSCF:cscf_get_authorization: Message does not contain Authorization header."

Can anyone help me?

Discussion


Log in to post a comment.