Make a backup of the r-uri in an avp (with avp_write()), copy the URI from From header to an avp and the move it to r-uri. Afterwards, you call registered() function of registrar module, which will tell you if that user is registered or not. Something like:
avp_write("$ruri", "i:20") avp_write("$from", "i:30"); avp_pustho("$ruri", "i:30");
if(registered()) { # the caller is registered ... };
# restore original r-uri avp_pustho("$ruri", "i:30");
Daniel
On 09/05/05 18:35, Raymond Chen wrote:
Dear all,
We want to prevent people dial out to PSTN without registering, how to check from header again location table?
Ray
Devel mailing list Devel@openser.org http://openser.org/cgi-bin/mailman/listinfo/devel