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

Function w_restore_from

modules/uac/uac.c:413–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411/************************** wrapper functions ******************************/
412
413static int w_restore_from(struct sip_msg *msg)
414{
415 /* safety checks - must be a request */
416 if (msg->first_line.type!=SIP_REQUEST) {
417 LM_ERR("called for something not request\n");
418 return -1;
419 }
420
421 return (restore_uri(msg,0,1)==0)?1:-1;
422}
423
424
425static int w_replace_from(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