| 785 | /************************** RRCB functions ******************************/ |
| 786 | |
| 787 | void 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 ******************************/ |
nothing calls this directly
no test coverage detected