|
@@ -550,7 +550,10 @@ class BotAgent:
|
|
|
call_op_param.txOption = pj.SipTxOption()
|
|
|
_sip_headers = []
|
|
|
for k, v in sip_headers.items():
|
|
|
- _sip_headers.append(pj.SipHeader(f"sip_h_{k}", v))
|
|
|
+ _sip_header = pj.SipHeader()
|
|
|
+ _sip_header.hName = f"sip_h_{k}"
|
|
|
+ _sip_header.hValue = v
|
|
|
+ _sip_headers.append(_sip_header)
|
|
|
call_op_param.txOption.headers = _sip_headers
|
|
|
|
|
|
acc = self.accounts.get(user_part)
|