Changes between Version 6 and Version 7 of Python_SIP/Accounts
- Timestamp:
- Jul 24, 2008 4:13:18 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Python_SIP/Accounts
v6 v7 14 14 == Creating Userless Accounts == 15 15 16 A ''user-less'' account i s 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.16 A ''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. 17 17 18 So for example, we might identify oursel f as ''"sip:192.168.0.15"'' (a user-less account) rather than ''"sip:user@pjsip.org"'' (an account).18 So for example, we might identify ourselves as ''"sip:192.168.0.15"'' (a user-less account) rather than, say, ''"sip:bennylp@pjsip.org"''. 19 19 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.20 In 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. 21 21 22 22 Here's a snippet: … … 37 37 == Creating Account == 38 38 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.39 For 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. 40 40 41 41 At 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: