Changeset 2909
- Timestamp:
- Aug 22, 2009 11:41:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/python/pjsua.py
r2375 r2909 1223 1223 _pjsua.acc_pres_notify(self._id, pres_obj, state, reason, 1224 1224 Lib._create_msg_data(hdr_list)) 1225 1226 def send_pager(self, uri, text, im_id=0, content_type="text/plain", \ 1227 hdr_list=None): 1228 """Send instant message to arbitrary URI. 1229 1230 Keyword arguments: 1231 text -- Instant message to be sent 1232 uri -- URI to send the Instant Message to. 1233 im_id -- Optional instant message ID to identify this 1234 instant message when delivery status callback 1235 is called. 1236 content_type -- MIME type identifying the instant message 1237 hdr_list -- Optional list of headers to be sent with the 1238 request. 1239 1240 """ 1241 lck = self._lib().auto_lock() 1242 err = _pjsua.im_send(self._id, uri, \ 1243 content_type, text, \ 1244 Lib._create_msg_data(hdr_list), \ 1245 im_id) 1246 self._lib()._err_check("send_pager()", self, err) 1225 1247 1226 1248 class CallCallback:
Note: See TracChangeset
for help on using the changeset viewer.