Bogdan-Andrei Iancu wrote:
My opinion is that the functions should take as parameter an URI and not
just the domain. Normally the script handles SIP uris and not just
domain name, so has no sense to start extending the pvs to just for this
purpose.
The function should properly parse the received URI and to extract the
domain.
What is the allowed URI? name-addr or addr-spec? Maybe a generic
function which parses name-addr into addr-spec might be useful.
Then would could have another function which parses SIP URIs into user,
domain and parameters, and another function which parses tel URIs into
number, paramters and phone-context.
regards
klaus
regards,
bogdan
Juha Heinanen wrote:
Bogdan-Andrei Iancu writes:
> in this case, we can replaced everything with the
is_domain_local(pv) > function, right?
yes, if pv contains just the host part of the uri. perhaps also
is_uri_user_e164 should then be replaced by is_user_e164(pv) and add new
pvs if necessary, since now there doesn't exist a host part pv for each
uri pv. for example, there is $re that contains refer-to uri, but
there is no pv that would contain host part of refer-to uri.
-- juha
_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel
_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel