Changes between Version 6 and Version 7 of Python_SIP/Accounts


Ignore:
Timestamp:
Jul 24, 2008 4:13:18 PM (11 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python_SIP/Accounts

    v6 v7  
    1414== Creating Userless Accounts == 
    1515 
    16 A ''user-less'' account is an account without user ID (duh!). It identifies a particular SIP endpoint rather than a particular user. Some other SIP softphones may call this peer-to-peer mode, which means that we are calling another computer via its address rather than calling a particular user ID. 
     16A ''user-less'' account identifies a particular SIP endpoint rather than a particular user. Some other SIP softphones may call this peer-to-peer mode, which means that we are calling another computer via its address rather than calling a particular user ID. 
    1717 
    18 So for example, we might identify ourself as ''"sip:192.168.0.15"'' (a user-less account) rather than ''"sip:user@pjsip.org"'' (an account). 
     18So for example, we might identify ourselves as ''"sip:192.168.0.15"'' (a user-less account) rather than, say, ''"sip:bennylp@pjsip.org"''. 
    1919 
    20 In pjsua, a user-less account may be created for each particular transport instance. Creating user-less account is very simple, all we need is the transport instance which is returned by [http://www.pjsip.org/python/pjsua.htm#Lib-create_transport lib.create_transport()] method as explained in previous chapter. 
     20In pjsua, a userless account corresponds to a particular transport. Creating user-less account is very simple, all we need is the transport instance which is returned by [http://www.pjsip.org/python/pjsua.htm#Lib-create_transport lib.create_transport()] method as explained in previous chapter. 
    2121 
    2222Here's a snippet: 
     
    3737== Creating Account == 
    3838 
    39 For the "normal" account, we need to configure [http://www.pjsip.org/python/pjsua.htm#AccountConfig AccountConfig] and call {{{lib.create_account()}}} to create the account. 
     39For the "normal" account, we need to configure [http://www.pjsip.org/python/pjsua.htm#AccountConfig AccountConfig] and call [http://www.pjsip.org/python/pjsua.htm#Lib-create_account lib.create_account()] to create the account. 
    4040 
    4141At the very minimum, pjsua only requires the account's ID, which is an URI to identify the account (or in SIP terms, it's called Address of Record/AOR). Here's a snippet: