Replace headers in python module PJSUA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux