how to prevent of changing the value of nonce ttl sip auth ?
----- Forwarded Message ----- From: Jack Nikolas <jack.nikolas@ymail.com> To: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org> Sent: Friday, 6 July 2012, 11:20:52 Subject: Fw: how to prevent the changes of nonce ttl sip auth ? ----- Forwarded Message ----- From: Jack Nikolas <jack.nikolas@ymail.com> To: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org> Sent: Friday, 6 July 2012, 10:12:43 Subject: how to prevent the changes of nonce ttl sip auth ? ----- Forwarded Message ----- From: Jack Nikolas <jack.nikolas@ymail.com> To: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org> Sent: Friday, 6 July 2012, 10:10:50 Subject: how to prevent the changes of nonce ttl sip auth ? HI, i find out every time we want to register on sipclient the sip_nonce_auth get the value,and every time we unregister the same sipclient the value of sip_nonce_auth was changed ! but is there any solutions to prevent of changing the value of sip_nonce_auth for same sipclient that registered and unregistered? because suppose we have 25 sip client that is registered on our server,now i want to check the sip client that is registered be the same that is unregistered so if the value of sip_nonce_auth for the sipcliet be the equal with the value of the same sipclient that is unregister ,the problem will solve, in the internal.xml we have <param name="nonce-ttl" value="60"/> it means every 60sec the value of sip_nonce_auth for each sipclient was chnaged , and if the value of nonce-ttl is less than the value of parametere "register every ... " softphone, so the nonce-ttl was changed again. but i don't want change to check every sip client that is registered is the same that is unregistered i want when the status of sipclient was changed to 'unregistered' form 'registered' the value of 'sip_nonce_auth' be the same to find out the sip client that is registered was the same that is unregistered ! is there any solutions? ( i know we can check using fs_cli with sofia status profile internal reg and sofia_count_reg ..) but i want to check with sip header ... for example when sipclient is registered 'Event-Name: REQUEST_PARAMS Core-UUID: 86fdb0e4-c6cd-11e1-a155-c382209fd02d FreeSWITCH-Hostname: PBX FreeSWITCH-Switchname: PBX FreeSWITCH-IPv4: 192.168.10.1 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2012-07-06%2009%3A42%3A44 Event-Date-GMT: Fri,%2006%20Jul%202012%2005%3A12%3A44%20GMT Event-Date-Timestamp: 1341551564411676 Event-Calling-File: sofia_reg.c Event-Calling-Function: sofia_reg_parse_auth Event-Calling-Line-Number: 2364 Event-Sequence: 5610 action: sip_auth sip_profile: internal sip_user_agent: eyeBeam%20release%201102q%20stamp%2051814 sip_auth_username: jack sip_auth_realm: 192.168.10.89 sip_auth_nonce: 37cb2234-c729-11e1-a170-c382209fd02d sip_auth_uri: sip%3A192.168.10.1 sip_contact_user: jack sip_contact_host: 192.168.12.1 sip_to_user: jack sip_to_host: 192.168.10.1 sip_from_user: jack sip_from_host: 192.168.10.1 sip_request_host: 192.168.10.1 sip_auth_qop: auth sip_auth_cnonce: c3f4cce1becf9f7fb6b20bafc27e2c68 sip_auth_nc: 00000001 sip_auth_response: 5489fc3afb45d7a826b865eef559baf5 sip_auth_method: REGISTER key: id user: jack domain: 192.168.10.1 ip: 192.168.12.1 when the same sip client is unregistered: 'Event-Name: REQUEST_PARAMS Core-UUID: 86fdb0e4-c6cd-11e1-a155-c382209fd02d FreeSWITCH-Hostname: PBX FreeSWITCH-Switchname: PBX FreeSWITCH-IPv4: 192.168.10.1 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2012-07-06%2009%3A49%3A56 Event-Date-GMT: Fri,%2006%20Jul%202012%2005%3A19%3A56%20GMT Event-Date-Timestamp: 1341551996651662 Event-Calling-File: sofia_reg.c Event-Calling-Function: sofia_reg_parse_auth Event-Calling-Line-Number: 2364 Event-Sequence: 5610 action: sip_auth sip_profile: internal sip_user_agent: eyeBeam%20release%201102q%20stamp%2051814 sip_auth_username:jack sip_auth_realm: 192.168.10.89 sip_auth_nonce:397d1b86-c72a-11e1-a171-c382209fd02d sip_auth_uri: sip%3A192.168.10.1 sip_contact_user:jack sip_contact_host: 192.168.12.1 sip_to_user: jack sip_to_host: 192.168.10.1 sip_from_user: jack sip_from_host: 192.168.10.1 sip_request_host: 192.168.10.1 sip_auth_qop: auth sip_auth_cnonce: c3f4cce1becf9f7fb6b20bafc27e2c68 sip_auth_nc: 00000001 sip_auth_response: 5489fc3afb45d7a826b865eef559baf5 sip_auth_method: REGISTER key: id user: jack domain: 192.168.10.1 ip: 192.168.12.1 as you see the sip_auth_method is the same when user is registered AND unregistered ... but how can i findout that ? is there any method to change the 'sip_auth_method ' to another value when sipclient status was changed to 'unregistered'? thanks in advanced
participants (1)
-
Jack Nikolas