[SIP Beyond VoIP] sylkserver fails to parse refer-to uri

Juha Heinanen jh at tutpro.com
Sun Oct 23 10:58:36 CEST 2011


i did some sylkserver tests using sip-session tool.  when i try to add
a participant to conference, sip-session sends to refer to sylkserver
where refer-to header looks like this:

Refer-To: <sip:test at test.fi>;method=INVITE

sylkserver then tries to parse the uri using this piece of code:

        self.refer_to_uri = data.headers.get('Refer-To').uri
	...
        if not re.match('^(sip:|sips:).*', self.refer_to_uri):
            self.refer_to_uri = 'sip:%s' % self.refer_to_uri
        try:
            self.refer_to_uri = SIPURI.parse(self.refer_to_uri)
        except SIPCoreError:
            log.msg('parsing of refer_to_uri %s failed' % self.refer_to_uri)
            self._refer_request.reject(488)
            return

which results to syslog entry:

Oct 23 11:47:09 sip sylk-server[17458]: parsing of refer_to_uri sip:<sip:test at test.fi> failed

since self.refer_to_uri starts with <, the code adds sip: in front of
it, which of course results in invalid sip uri.

-- juha


More information about the SIPBeyondVoIP mailing list