MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / rr_checker

Function rr_checker

modules/uac/replace.c:787–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785/************************** RRCB functions ******************************/
786
787void rr_checker(struct sip_msg *msg, str *r_param, void *cb_param)
788{
789 /* check if the request contains the route param */
790 if ( (restore_uri( msg, 0, 1/*from*/) +
791 restore_uri( msg, 1, 0/*to*/) )!= -2 ) {
792 /* restore in req performed -> replace in reply */
793 /* in callback we need TO/FROM to be parsed- it's already done
794 * by restore_from_to() function */
795 if ( uac_tmb.register_tmcb( msg, 0, TMCB_RESPONSE_IN,
796 restore_uris_reply, 0, 0)!=1 ) {
797 LM_ERR("failed to install TM callback\n");
798 return;
799 }
800 }
801}
802
803
804/************************** TMCB functions ******************************/

Callers

nothing calls this directly

Calls 1

restore_uriFunction · 0.85

Tested by

no test coverage detected