[Users] save("location") on reply

Klaus Darilion klaus.mailinglists at pernau.at
Wed May 30 14:46:45 CEST 2007



Daniel-Constantin Mierla wrote:
> 
> 
> On 05/30/07 14:32, Klaus Darilion wrote:
>> What about copying the contact in the REGISTER into an AVP. Then we 
>> would need a function which stores AVP into location table - e.g.
>>   save($avp(s:contacts));
>>
>> This function should be useable in request and reply route.
> there is also the expires that should be taken in consideration. Also, 
> in reply, the server can add all the registered contacts, with the 
> afferent expiration times. What is also important, for nat traversal, 
> are the received ip and port, source ip and port, which must be taken 
> from request.

Yes, thats right. My idea was to store all the relevant data into AVP 
during request processing and reuse the AVPs when storing in reply route 
(only check if response code is 200)

regards
klaus

> 
> Cheers,
> Daniel
> 
>>
>> regards
>> klaus
>>
>> Jean-Michel Foucher wrote:
>>> Hello,
>>>> It looks like Maxim has committed an enhancement to SER to allow save
>>>> of contacts in on_reply route, but I don't think that addresses your
>>>> specific issue.
>>> no, unfortunately it does not.
>>> Event though save_noreply would be called when a 200 OK is received, 
>>> save_noreply should use the original REGISTER in order to gather 
>>> contact information.
>>>>
>>>> You can check it out here:
>>>> http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/registrar/reg_mod.c.diff?r1=1.49&r2=1.50 
>>>>
>>>> http://cvs.berlios.de/cgi-bin/viewcvs.cgi/ser/sip_router/modules/registrar/save.c.diff?r1=1.53&r2=1.54 
>>>>
>>> thanks for the links ;)
>>>
>>> best regards,
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>




More information about the Users mailing list