This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3 | |
import json | |
import argparse | |
def rewrite_as_c_string(json_str): | |
data = json.loads(json_str) | |
formatted_json = json.dumps(data, indent=4) | |
c_string = '"' + formatted_json.replace('"', '\\"').replace('\n', '\\n"\n"') + '"' | |
return c_string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="iso-8859-2" ?> | |
<!DOCTYPE scenario SYSTEM "sipp.dtd"> | |
<scenario name="UAC INVITE + call"> | |
<send retrans="500"> | |
<![CDATA[ | |
INVITE sip:[field3]@[field4]:5061;transport=tls SIP/2.0 | |
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch] |
OlderNewer