[Serusers] From-Tag/Call-id not uniq?

Jiri Kuthan jiri at iptel.org
Fri Aug 13 03:14:55 CEST 2004


Now to provide a complete answer to the question: the values are supposed to
be unique according to RFC3261 but there is nothing in the world that
prevents broken implementations to generate invalid non-unique values.
There are indeed implementations that are broken. To make CDRs as much
unique as you can, compose the identifier as a triple callid-fromtag-
totag. Composition of values generated by UACs and UASs significantly
reduces the chance of not being unique.

-jiri

At 06:23 PM 8/12/2004, Michael Shuler wrote:
>The call-id is supposed to be unique across a complete session i.e.
>INVITE/RINGING/OK/ACK/BYE.  If it wasn't then there would be no way to
>relate the messages as part of the same sequence/call.
>
>----------------------------------------
>
>Michael Shuler, C.E.O.
>BitWise Systems, Inc.
>682 High Point Lane
>East Peoria, IL 61611
>Office: (217) 585-0357
>Cell: (309) 657-6365
>Fax: (309) 213-3500
>E-Mail: mike at bwsys.net
>Customer Service: (877) 976-0711 
>
>> -----Original Message-----
>> From: serusers-bounces at lists.iptel.org 
>> [mailto:serusers-bounces at lists.iptel.org] On Behalf Of Arnd Vehling
>> Sent: Thursday, August 12, 2004 10:47 AM
>> To: serusers at lists.iptel.org
>> Subject: [Serusers] From-Tag/Call-id not uniq?
>> 
>> 
>> Hi,
>> 
>> according to the RFC:
>> 
>> "When a tag is generated by a UA for insertion into a request or
>>   response, it MUST be globally unique and cryptographically random
>>   with at least 32 bits of randomness."
>> 
>> But when looking at a sip logfile:
>> 
>> egrep "^From:.*;tag=9d49295bb825210f" /var/log/term.log  | wc -l
>> 503
>> 
>> Question: Did i understood something wrong or is the recoccurance of
>> the same tag-id and callid in different sessions voilating the rfc?
>> 
>> Ive found loads of non-uniq call-ids as well as non uniq tags. How
>> is a man supposed to make accounting (besides accounting on the PSTN
>> GW/Voice Switch) when those to identifiers are not globally uniq?
>> 
>> So far ive seen non uniq callids from Grandstream Products 
>> and non uniq
>> tags from sipura adapters.
>> 
>>     :: arnd ::
>> 
>> _______________________________________________
>> Serusers mailing list
>> serusers at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
>> 
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers

--
Jiri Kuthan            http://iptel.org/~jiri/  




More information about the sr-users mailing list