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

Function w_restore_to

modules/uac/uac.c:451–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449
450
451static int w_restore_to(struct sip_msg *msg)
452{
453 /* safety checks - must be a request */
454 if (msg->first_line.type!=SIP_REQUEST) {
455 LM_ERR("called for something not request\n");
456 return -1;
457 }
458
459 return (restore_uri(msg,1,0)==0)?1:-1;
460}
461
462
463static int w_replace_to(struct sip_msg* msg, str *dsp, str *uri)

Callers

nothing calls this directly

Calls 1

restore_uriFunction · 0.85

Tested by

no test coverage detected