Changeset 4609 for pjproject/trunk/pjsip-apps/src/python/pjsua.py
- Timestamp:
- Oct 2, 2013 3:19:54 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/python/pjsua.py
r4581 r4609 898 898 cfg.srtp_secure_signaling = self.srtp_secure_signaling 899 899 900 cfg.rtp_transport_cfg = self.rtp_transport_cfg._cvt_to_pjsua() 900 if (self.rtp_transport_cfg is not None): 901 cfg.rtp_transport_cfg = self.rtp_transport_cfg._cvt_to_pjsua() 901 902 902 903 return cfg … … 979 980 """Notification about incoming call. 980 981 981 Unless this callback is implemented, the default behavior is to 982 reject the call with default status code. 982 Application should implement one of on_incoming_call() or 983 on_incoming_call2(), otherwise, the default behavior is to 984 reject the call with default status code. Note that if both are 985 implemented, only on_incoming_call2() will be called. 983 986 984 987 Keyword arguments: … … 987 990 call.hangup() 988 991 992 def on_incoming_call2(self, call, rdata): 993 """Notification about incoming call, with received SIP message info. 994 995 Application should implement one of on_incoming_call() or 996 on_incoming_call2(), otherwise, the default behavior is to 997 reject the call with default status code. Note that if both are 998 implemented, only on_incoming_call2() will be called. 999 1000 Keyword arguments: 1001 call -- the new incoming call 1002 rdata -- the received message 1003 """ 1004 call.hangup() 1005 989 1006 def on_incoming_subscribe(self, buddy, from_uri, contact_uri, pres_obj): 990 1007 """Notification when incoming SUBSCRIBE request is received. … … 2742 2759 acc = self._lookup_account(acc_id) 2743 2760 if acc: 2744 acc._cb.on_incoming_call( Call(self, call_id) ) 2761 if 'on_incoming_call2' in acc._cb.__class__.__dict__: 2762 acc._cb.on_incoming_call2( Call(self, call_id), rdata ) 2763 else: 2764 acc._cb.on_incoming_call( Call(self, call_id) ) 2745 2765 else: 2746 2766 _pjsua.call_hangup(call_id, 603, None, None)
Note: See TracChangeset
for help on using the changeset viewer.