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

Function t_write_unix

modules/tm/t_fifo.c:794–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792
793
794int t_write_unix(struct sip_msg* msg, struct tw_info* info, str* socket)
795{
796 if (assemble_msg(msg, info) < 0) {
797 LM_ERR("failed to assemble_msg\n");
798 return -1;
799 }
800
801 if (write_to_unixsock(socket, TWRITE_PARAMS) == -1) {
802 LM_ERR("write_to_unixsock failed\n");
803 return -1;
804 }
805
806 /* make sure that if voicemail does not initiate a reply
807 * timely, a SIP timeout will be sent out */
808 if (add_blind_uac() == -1) {
809 LM_ERR("add_blind failed\n");
810 return -1;
811 }
812 return 1;
813}

Callers

nothing calls this directly

Calls 3

assemble_msgFunction · 0.85
write_to_unixsockFunction · 0.85
add_blind_uacFunction · 0.85

Tested by

no test coverage detected