[Users] save("location") on reply

Daniel-Constantin Mierla daniel at voice-system.ro
Wed May 30 13:58:10 CEST 2007



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.

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