[Kamailio-Devel] SF.net SVN: openser:[5397] trunk/modules/siputils

Daniel-Constantin Mierla miconda at gmail.com
Thu Jan 8 12:39:23 CET 2009



On 01/08/2009 01:27 PM, Klaus Darilion wrote:
>
>
> Daniel-Constantin Mierla schrieb:
>> Revision: 5397
>>           http://openser.svn.sourceforge.net/openser/?rev=5397&view=rev
>> Author:   miconda
>> Date:     2008-12-30 08:51:56 +0000 (Tue, 30 Dec 2008)
>>
>> Log Message:
>> -----------
>> - added two new function
>>     - cmp_uri(uri1, uri2) - compare the parameters as SIP URI
>>     - cmp_aor(uri1, uri2) - compare the parameters as SIP AoR
>
>
> Hi Daniel!
>
> What's the difference between an SIP URI and a SIP AoR? I thought that 
> the AoR is just a URI with special meaning.
Hello Klaus,

I am referring to AoR as the address to identify a SIP user, while SIP 
URI is the address in the SIP message, with all its forms.

For example:
- my AoR is: daniel at asipto.com
- when some is calling me, URIs can be: sip:daniel at asipto.com;param=xyz

According to RFC, matching the URI is quite complex algorithm, so I made 
the two functions, one to do strict URI-RFC matching, and the other one 
to be able to match User SIP addresses (ignore parameters and all the 
rest that can appear in URI).

As URI:
sip:daniel at asipto.com;param=xyz is different than 
sip:daniel at asipto.com;param=abc
As AoR:
sip:daniel at asipto.com;param=xyz is same as sip:daniel at asipto.com;param=abc

Not sure I've chosen the right terms, though...

Cheers,
Daniel

>
> regards
> klaus
>
>
>
>
>
>
>> - still to test and set the limit in the comparison rules from the 
>> RFC requirements
>>
>> Modified Paths:
>> --------------
>>     trunk/modules/siputils/README
>>     trunk/modules/siputils/doc/siputils.xml
>>     trunk/modules/siputils/doc/siputils_admin.xml
>>     trunk/modules/siputils/siputils.c
>>
>>
>> This was sent by the SourceForge.net collaborative development 
>> platform, the world's largest Open Source development site.
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list