[Serusers] avpops - how to fake a registration

Java Rockx javarockx at gmail.com
Sat Apr 2 05:13:02 CEST 2005


Hi All.

I'm using ser-0.9.1 with auth_db enabled for user registration stuff.

I need to fake a REGISTRATION under certain circumstances. What I want
to do is sl_send_reply("200", "OK") when I get a REGISTER message from
user 697.

I don't want to actually call the save("location") method because I do
not want to store 697 in the database or in ser's cache.

So how can I sl_send_reply() and include the <Contact> header which
the save() function would normally insert in to the response?

I'm thinking I could use AVPOPs somehow, but I'm not sure.

Can this be done?

Regards,
Paul




More information about the sr-users mailing list