|
@@ -548,13 +548,13 @@ class BotAgent:
|
|
|
call_op_param.statusCode = pj.PJSIP_SC_OK
|
|
|
call_op_param.reason = reason
|
|
|
call_op_param.txOption = pj.SipTxOption()
|
|
|
- _sip_headers = []
|
|
|
+ sip_header_vector = pj.SipHeaderVector()
|
|
|
for k, v in sip_headers.items():
|
|
|
_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
|
|
|
+ _sip_header.hValue = str(v)
|
|
|
+ sip_header_vector.push_back(_sip_header)
|
|
|
+ call_op_param.txOption.headers = sip_header_vector
|
|
|
|
|
|
acc = self.accounts.get(user_part)
|
|
|
if acc:
|