{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/sip-message/outbound/index.ts"],"sourcesContent":["import SipMessage from \"../index.js\";\n\nclass OutboundMessage extends SipMessage {\n  public static fromString(str: string): OutboundMessage {\n    const sipMessage = SipMessage.fromString(str);\n    sipMessage.direction = \"outbound\";\n    return sipMessage;\n  }\n\n  public constructor(subject = \"\", headers = {}, body = \"\") {\n    super(subject, headers, body);\n    this.direction = \"outbound\";\n    this.headers[\"Content-Length\"] = this.body.length.toString();\n    this.headers[\"User-Agent\"] = \"ringcentral-web-phone-2\";\n    this.headers[\"Max-Forwards\"] = \"70\";\n  }\n}\n\nexport default OutboundMessage;\n"],"mappings":";;AAEA,IAAM,kBAAN,cAA8B,WAAW;CACvC,OAAc,WAAW,KAA8B;EACrD,MAAM,aAAa,WAAW,WAAW,IAAI;AAC7C,aAAW,YAAY;AACvB,SAAO;;CAGT,YAAmB,UAAU,IAAI,UAAU,EAAE,EAAE,OAAO,IAAI;AACxD,QAAM,SAAS,SAAS,KAAK;AAC7B,OAAK,YAAY;AACjB,OAAK,QAAQ,oBAAoB,KAAK,KAAK,OAAO,UAAU;AAC5D,OAAK,QAAQ,gBAAgB;AAC7B,OAAK,QAAQ,kBAAkB"}