Changes between Version 1 and Version 2 of Python_SIP/Calls


Ignore:
Timestamp:
Jul 23, 2008 8:35:51 PM (11 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python_SIP/Calls

    v1 v2  
    77== Making Outgoing Calls == 
    88 
    9 Making outgoing call is simple, just invoke [http://www.pjsip.org/python/pjsua.htm#Account-make_call make_call()] method of the [http://www.pjsip.org/python/pjsua.htm#Account Account] object. Assuming you have the account object as ''acc'' variable and destination URI string in ''dst_uri'': 
     9Making outgoing call is simple, just invoke [http://www.pjsip.org/python/pjsua.htm#Account-make_call make_call()] method of the [http://www.pjsip.org/python/pjsua.htm#Account Account] object. Assuming you have the account object as ''acc'' variable and destination URI string in ''dst_uri'', you can initiate outgoing call with the snippet below: 
    1010 
    1111 {{{ 
     
    2626== Receiving Incoming Calls == 
    2727 
    28 Incoming calls are reported as [http://www.pjsip.org/python/pjsua.htm#AccountCallback-on_incoming_call on_incoming_call()] of the [http://www.pjsip.org/python/pjsua.htm#AccountCallback AccountCallback] class. You must derive a class from the !AccountCallback to handle incoming calls: 
     28Incoming calls are reported as [http://www.pjsip.org/python/pjsua.htm#AccountCallback-on_incoming_call on_incoming_call()] of the [http://www.pjsip.org/python/pjsua.htm#AccountCallback AccountCallback] class. You must derive a class from the !AccountCallback (and install instance of this class to the account) to handle incoming calls.  
     29 
     30Below is a sample code: 
    2931 
    3032 {{{