- Timestamp:
- Dec 11, 2008 11:03:21 AM (16 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/python/_pjsua.c
r2260 r2374 2138 2138 content = PyString_ToPJ(pContent); 2139 2139 2140 pjsua_msg_data_init(&msg_data); 2141 2140 2142 if (pMsgData != Py_None) { 2141 2143 PyObj_pjsua_msg_data *omd; … … 2179 2181 2180 2182 to = PyString_ToPJ(pTo); 2183 2184 pjsua_msg_data_init(&msg_data); 2181 2185 2182 2186 if (pMsgData != Py_None) { -
pjproject/trunk/pjsip-apps/src/python/pjsua.py
r2221 r2374 1673 1673 self._lib()._err_check("send_request()", self, err) 1674 1674 1675 1675 def send_pager(self, text, im_id=0, content_type="text/plain", 1676 hdr_list=None): 1677 """Send instant message inside a call. 1678 1679 Keyword arguments: 1680 text -- Instant message to be sent 1681 im_id -- Optional instant message ID to identify this 1682 instant message when delivery status callback 1683 is called. 1684 content_type -- MIME type identifying the instant message 1685 hdr_list -- Optional list of headers to be sent with the 1686 request. 1687 1688 """ 1689 lck = self._lib().auto_lock() 1690 err = _pjsua.call_send_im(self._id, \ 1691 content_type, text, \ 1692 Lib._create_msg_data(hdr_list), \ 1693 im_id) 1694 self._lib()._err_check("send_pager()", self, err) 1695 1696 1676 1697 class BuddyInfo: 1677 1698 """This class contains information about Buddy. Application may … … 2085 2106 self.handle_events(5) 2086 2107 loop = loop + 1 2087 2108 time.sleep(0.050) 2088 2109 _pjsua.destroy() 2089 2110 _lib = None … … 2665 2686 body, acc_id): 2666 2687 call = None 2667 if call_id == -1:2688 if call_id != -1: 2668 2689 call = self._lookup_call(call_id) 2669 2690 if call: … … 2680 2701 code, reason, acc_id): 2681 2702 call = None 2682 if call_id == -1:2703 if call_id != -1: 2683 2704 call = self._lookup_call(call_id) 2684 2705 if call: … … 2695 2716 acc_id): 2696 2717 call = None 2697 if call_id == -1:2718 if call_id != -1: 2698 2719 call = self._lookup_call(call_id) 2699 2720 if call:
Note: See TracChangeset
for help on using the changeset viewer.