#!/usr/bin/env python3
# -*- coding: utf-8 -*-

__author__ = 'Jose Luis Verdeguer'
__version__ = '3.3'
__license__ = "GPL"
__copyright__ = "Copyright (C) 2015-2022, SIPPTS"
__email__ = "pepeluxx@gmail.com"

from sippts.sipsend import SipSend
from sippts.lib.params import get_sipsend_args


def main():
    ip, host, proxy, rport, lport, proto, method, domain, contact_domain, from_name, from_user, from_domain, from_tag, to_name, to_user, to_domain, to_tag, user, pwd, digest, branch, callid, cseq, sdp, sdes, user_agent, localip, nocolor, ofile, ppi, pai, header, nocontact = get_sipsend_args()

    s = SipSend()
    s.ip = ip
    s.host = host
    s.proxy = proxy
    s.rport = rport
    s.lport = lport
    s.proto = proto
    s.method = method
    s.domain = domain
    s.contact_domain = contact_domain
    s.from_name = from_name
    s.from_domain = from_domain
    s.from_tag = from_tag
    s.to_name = to_name
    s.from_user = from_user
    s.to_user = to_user
    s.to_domain = to_domain
    s.to_tag = to_tag
    s.user = user
    s.pwd = pwd
    s.user_agent = user_agent
    s.localip = localip
    s.digest = digest
    s.branch = branch
    s.callid = callid
    s.cseq = cseq
    s.sdp = sdp
    s.sdes = sdes
    s.nocolor = nocolor
    s.ofile = ofile
    s.ppi = ppi
    s.pai = pai
    s.header = header
    s.nocontact = nocontact

    s.start()


if __name__ == '__main__':
    main()
