[Users] Re: [Devel] how to make sure the caller is registered before it can dial out to PSTN
Daniel-Constantin Mierla
daniel at voice-system.ro
Mon Sep 5 17:59:03 CEST 2005
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 at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/devel
>
>
More information about the Users
mailing list