int cr_nofallback_route5(struct sip_msg * _msg, gparam_t *_carrier, gparam_t *_domain, gparam_t *_prefix_matching, gparam_t *_rewrite_user, enum hash_source _hsrc) { return cr_do_route(_msg, _carrier, _domain, _prefix_matching, _rewrite_user, _hsrc, alg_crc32_nofallback, NULL); }
/** * rewrites the request URI of msg after determining the * new destination URI with the crc32 hash algorithm. * * @param _msg the current SIP message * @param _carrier the requested carrier * @param _domain the requested routing domain * @param _prefix_matching the user to be used for prefix matching * @param _rewrite_user the localpart of the URI to be rewritten * @param _hsrc the SIP header used for hashing * @param _descavp the name of the AVP where the description is stored * * @return 1 on success, -1 on failure */ int cr_route(struct sip_msg * _msg, gparam_t *_carrier, gparam_t *_domain, gparam_t *_prefix_matching, gparam_t *_rewrite_user, enum hash_source _hsrc, gparam_t *_descavp) { return cr_do_route(_msg, _carrier, _domain, _prefix_matching, _rewrite_user, _hsrc, alg_crc32, _descavp); }
/** * rewrites the request URI of msg after determining the * new destination URI with the prime hash algorithm. * * @param _msg the current SIP message * @param _carrier the requested carrier * @param _domain the requested routing domain * @param _prefix_matching the user to be used for prefix matching * @param _rewrite_user the localpart of the URI to be rewritten * @param _hsrc the SIP header used for hashing * @param _dstavp the name of the destination AVP where the used host name is stored * * @return 1 on success, -1 on failure */ int cr_prime_route(struct sip_msg * _msg, struct multiparam_t *_carrier, struct multiparam_t *_domain, pv_elem_t *_prefix_matching, pv_elem_t *_rewrite_user, enum hash_source _hsrc, struct multiparam_t *_dstavp) { return cr_do_route(_msg, _carrier, _domain, _prefix_matching, _rewrite_user, _hsrc, alg_prime, _dstavp); }