[OpenSIPS-Users] ERROR:core:parse_uri: bad uri, state 0 parsed
Vlad Paiu
vladpaiu at opensips.org
Thu Jun 2 15:20:31 CEST 2011
Hello Nick,
This isn't really something that we can fix on the OpenSIPS side.
First, this behavior is not RFC compliant, and secondly, if you see that
a URI is "malformed" in this way, you can't just assume it to be
prefixed it with sip: , because it could also be sips: or tel: .
Regards,
--
Vlad Paiu
OpenSIPS Developer
On 06/02/2011 01:14 PM, nick at uni-petrol.com wrote:
> Dear Vlad!
>
> Yes, this is broken UA (NCH Software Express Talk 4.04 on MacBook-Pro).
>
> I just post this message to make sure opensips community know such
> cases and maybe fix if it will be needed.
>
> Thanks in advance!
>
> On Thu, 02 Jun 2011 12:08:16 +0300, Vlad Paiu wrote:
>
>> Hello Nick,
>>
>> Your problem is that your From and To header fields do not contain valid
>> SIP uris, in the sense that the "sip:" part from the beginning is
>> missing
>> ( useras at example.com [9] should be sip:useras at example.com, like in the
>> R-URI ) , which makes OpenSIPS throw all those errors.
>>
>> Check which is the source of this. Maybe you are not properly altering
>> the messages, or you are dealing with broken UAs.
>>
>> Regards,
>>
>> --
>> Vlad Paiu
>> OpenSIPS Developer
>>
>> On 06/02/2011 09:57 AM, nick at uni-petrol.com [10]wrote:
>>
>>> Dear All!
>>>
>>> opensips: opensips_trunk rev 7915
>>>
>>> I have errors:
>>>
>>> Jun 2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:parse_uri: bad
>>> uri, state 0 parsed: (4) / (28)
>>> Jun 2 10:47:27 /usr/sbin/opensips[30111]:
>>> ERROR:core:pv_get_acc_username: bad From URI
>>> Jun 2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:do_assign: no
>>> value in right expression
>>> Jun 2 10:47:27 /usr/sbin/opensips[30111]: ERROR:core:do_assign: error
>>> at line: 551
>>>
>>> SUBSCRIBE sip:useras at example.com SIP/2.0
>>> Via: SIP/2.0/UDP 10.211.55.2:5070;rport;branch=z9hG4bK4288
>>> To: useras at example.com [1]
>>> From: useras at example.com;tag=8932 [2]
>>> Call-ID: 1306927858-288-MacBook-Pro. at 10.211.55.2 [3]
>>> CSeq: 116 SUBSCRIBE
>>> Max-Forwards: 20
>>> User-Agent: NCH Software Express Talk 4.04
>>> Contact:
>>> Expires: 86400
>>> Event: message-summary
>>> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, INFO, REFER, NOTIFY
>>> Supported: replaces
>>> Content-Length: 0
>>>
>>> SIP/2.0 501 Method Not Supported Here
>>> Via: SIP/2.0/UDP
>>>
>>> 10.211.55.2:5070;rport=5070;branch=z9hG4bK4288;received=85.235.185.170
>>> To: useras at example.com;tag=f2775ec65578db2ba978e4353ce87342.dbdb [4]
>>> From: useras at example.com;tag=8932 [5]
>>> Call-ID: 1306927858-288-MacBook-Pro. at 10.211.55.2 [6]
>>> CSeq: 116 SUBSCRIBE
>>> Server: SIP Gateway
>>> Content-Length: 0
>>>
>>> _______________________________________________ Users mailing list
>>> Users at lists.opensips.org [7]
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users [8]
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list