[SR-Users] is_from_user_enum and SRV records

Juha Heinanen jh at tutpro.com
Mon Apr 11 07:27:52 CEST 2011


Eric Hiller writes:

> Is there a way to make is_from_user_enum test ALL values of the SRV
> record?

i could not find from svn who implemented is_from_user_enum function,
since i don't remember myself doing it.  source has this comment that
may explain your problem:

/*
 * Check if from user is a valid enum based user, and check to make sure
 * that the src_ip == an srv record that maps to the enum from user.
 */
int is_from_user_enum_2(struct sip_msg* _msg, char* _suffix, char*
_service)

i don't understand motivation for the second condition, but since i'm most
likely not author of the function and since i have never used it,
cannot comment more about it.

-- juha



More information about the sr-users mailing list