Replace headers in python module PJSUA

SD
Some Dick
Fri, Nov 16, 2018 4:54 AM

Hi, so I have a pjsua module for python.

Everything works fine except two things:
I can't find any solution to replace important for my job parameters:
Replace FROM header. I found one solution but its obviously bad:
acc = lib.create_account(pj.AccountConfig("sip.diamondcard.us", "481341",
"148317354153","Bruce"))
where Bruce going to From header.
But I dont really want to register every time if I want to change a caller
name.
I tried to put it into header_list in acc.make_call but my headers appends
in the end so nothing changes.
Second one:
How to catch if other side answered a call? Because pj.CallState.CONFIRMED
doesnt seems like a legit way to do that.

Thank you!

Hi, so I have a pjsua module for python. Everything works fine except two things: I can't find any solution to replace important for my job parameters: Replace FROM header. I found one solution but its obviously bad: acc = lib.create_account(pj.AccountConfig("sip.diamondcard.us", "481341", "148317354153","Bruce")) where Bruce going to From header. But I dont really want to register every time if I want to change a caller name. I tried to put it into header_list in acc.make_call but my headers appends in the end so nothing changes. Second one: How to catch if other side answered a call? Because pj.CallState.CONFIRMED doesnt seems like a legit way to do that. Thank you!