Sip Endpoint SDK for Apple OS
 All Classes Functions Properties
GSDefaultSessionPolicy Class Reference

#import <GSDefaultSessionPolicy.h>

Inheritance diagram for GSDefaultSessionPolicy:
<GSSessionPolicyDelegate> <GSPolicyDelegate>

List of all members.

Properties

NSDictionary * configuration

Additional Inherited Members

- Public Member Functions inherited from
(NSArray *) - prioritizedCodecList
(GSDtmfMethod) - dtmfMethodForSession:
(BOOL) - shouldAnswerIncomingSession:
(BOOL) - isVideoCodecAvailable
(BOOL) - shouldAcceptVideo:
(BOOL) - rejectWhenHeadsetNa:
(NSString *) - sipCodeWhenHeadsetNa:
(int) - agcMode
(int) - dtxMode
(int) - vadLevel
- Public Member Functions inherited from
(void) - configureWithDictionary:

Detailed Description

Defines the default session policy as follows:

Codecs: Any of the supported codecs can be used for an audio session in the following order of priority:

  1. speex/16000/1
  2. speex/8000/1
  3. speex/32000/1
  4. iLBC/8000/1
  5. GSM/8000/1
  6. PCMU/8000/1
  7. PCMA/8000/1

DTMF: Will always return Rfc2833

Auto answer: Will return "NO" for all sessions.

This default behavior can be modified by calling the "configureWithDictionary" method defined in the GSPolicyDelegate protocol. The dictionary format for the session policy is specified below. Note that the prefered method of configuring this policy is by creating a "GSDefaultSessionPolicy" key in the GSEndpoint's configuration dictionary with the value being the session policy's configuration dictionary.

The possible key/value pairs in the configuration dictionary are as follows:

[key:value(type)]

auto_answer:YES if all calls should be answered automatically, NO otherwise (BOOL)

dtmf_method: One of: Rfc2833, Info, InbandRtp (NSString)

codecs:(NSDictionary) speex/16000/1:<priority value>=""> Higher priority means the codec has preference in codec negotiation (NSNumber) speex/8000/1:(NSNumber) speex/32000/1:(NSNumber) iLBC/8000/1:(NSNumber) GSM/8000/1:(NSNumber) PCMU/8000/1:(NSNumber) PCMA/8000/1:(NSNumber)

Definition at line 50 of file GSDefaultSessionPolicy.h.


The documentation for this class was generated from the following file: