[SIP Beyond VoIP] sylkserver fails to parse refer-to uri
Saul Ibarra Corretge
saul at ag-projects.com
Mon Oct 24 11:36:37 CEST 2011
Hi Juha,
On Oct 23, 2011, at 10:58 AM, Juha Heinanen wrote:
> 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.
>
IIRC I added a fix for that. Can you pull and test trunk version?
--
Saúl Ibarra Corretgé
AG Projects
More information about the SIPBeyondVoIP
mailing list