FreeCalypso > hg > themwi-system-sw
changeset 74:51e2f72dc5ab
sip-manual-out: generate From tags
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 20 Sep 2022 12:02:21 -0800 |
parents | d7b6b8973a83 |
children | dd845c4933e1 |
files | sip-manual-out/main.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sip-manual-out/main.c Tue Sep 20 10:58:32 2022 -0800 +++ b/sip-manual-out/main.c Tue Sep 20 12:02:21 2022 -0800 @@ -76,7 +76,8 @@ sip_dest_sin.sin_family = AF_INET; sip_dest_sin.sin_addr = sip_dest_ip; sip_dest_sin.sin_port = htons(sip_dest_port); - sprintf(from_uri, "sip:%s@%s", argv[2], inet_ntoa(sip_bind_ip)); + sprintf(from_uri, "<sip:%s@%s>;tag=out%u", argv[2], + inet_ntoa(sip_bind_ip), ntohs(dummy_rtp_endp.sin_port)); sprintf(to_uri, "sip:%s@%s", argv[3], sip_dest_domain); if (argv[4]) { rc = open_sip_log_file(argv[4]);