[asterisk-bugs] [JIRA] (ASTERISK-24352) Problem with SIP privacy - fromdomain

Krzysztof Chmielewski (JIRA) noreply at issues.asterisk.org
Wed Sep 24 05:47:29 CDT 2014


Krzysztof Chmielewski created ASTERISK-24352:
------------------------------------------------

             Summary: Problem with SIP privacy - fromdomain
                 Key: ASTERISK-24352
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24352
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_sip/General
    Affects Versions: 11.10.0
            Reporter: Krzysztof Chmielewski


Hi,
i think there is a problem with SIP privacy in from header. To be more specific, problem concerns fromdomain part of sip message. 

According to RFC fromdomain should be set to: anonymous.invalid

Unfortunately that only works when configuration for this peer leaves "fromdomain"  empty. In other case fromdomain is overwritten. I think this is why:

chan_sip.c

{code}
/* Allow domain to be overridden */
	if (!ast_strlen_zero(p->fromdomain))
		d = p->fromdomain;
	else /* Save for any further attempts */
		ast_string_field_set(p, fromdomain, d);
{code}

Earlier we have condition checking if there are any privacy settings on.
If fromdomain empty (in my db config for this peer) fromdomain is set to anonymous.invalid.

There will be no problem if we have any method to change fromdomain otherwise that through configuration.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list