Hello,
I am using Sofia-SIP 1.12.11 in my SIP client software. FreeSWITCH acts as a
sever.
When I am originating a call with INVITE request, the server asks
authentication. I am getting status code 407 in my nua_r_invite handler, and
then trying to authenticate:
sip_proxy_authenticate_t const *pa = context.sip->sip_proxy_authenticate;
tl_gets(tags,
SIPTAG_PROXY_AUTHENTICATE_REF(pa),
TAG_NULL());
if (pa) {
const char* rlm =
msg_params_find(sip->sip_proxy_authenticate->au_params,
"realm=");
/* Use rlm here to form an authentication string.. */
nua_authenticate(nuahandle, NUTAG_AUTH(auth_string), TAG_END());
}
And then Sofia responds with nua_r_invite w/code 904.
The nuahandle passed to the nua_authenticate() is the same as being created
for nua_invite().
There is also a very strange situation: when the client and the server do
run on the same PC (i.e. the realm specified by the server matches the
client's address), the operation goes well.
If the client and the server do run on the different machines, I am
receiving 904.
Could anybody please help me with this problem?
Dmitry
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel