From 31628f381ddbecf184d10906efcc06100a8d9e63 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 22 Aug 2009 11:47:00 +0000 Subject: Ticket #955 (fixes and enhancements to Python module): - allow user to specify either custom body or header in call.send_request(). Previously user has to specify both (thanks Saúl Ibarra for the patch) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2910 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/python/pjsua.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pjsip-apps/src/python/pjsua.py b/pjsip-apps/src/python/pjsua.py index 5521d3d8..c9c2ff5e 100644 --- a/pjsip-apps/src/python/pjsua.py +++ b/pjsip-apps/src/python/pjsua.py @@ -1680,7 +1680,7 @@ class Call: """ lck = self._lib().auto_lock() - if hdr_list and body: + if hdr_list or body: msg_data = _pjsua.Msg_Data() if hdr_list: msg_data.hdr_list = hdr_list -- cgit v1.2.3