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.

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

Reply via email to