| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; Configuration file for res_config_ldap | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ; Sample Asterisk config file for res_config_ldap | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; in extconfig.conf; you can use it like this: | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; sipusers = ldap,"dc=myDomain,dc=myDomainExt",sip | 
					
						
							|  |  |  | ; sippeers = ldap,"dc=myDomain,dc=myDomainExt",sip | 
					
						
							|  |  |  | ; extensions = ldap,"dc=myDomain,dc=myDomainExt",extensions | 
					
						
							|  |  |  | ; sip.conf = ldap,"dc=myDomain,dc=myDomainExt",config | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [_general] | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; Specify one of either host and port OR url.  URL is preferred, as you can | 
					
						
							|  |  |  | ; use more options. | 
					
						
							|  |  |  | ;host=192.168.1.1                    ; LDAP host | 
					
						
							|  |  |  | ;port=389 | 
					
						
							|  |  |  | ;url=ldap://ldap3.mydomain.com:3890 | 
					
						
							|  |  |  | ;protocol=3                          ; Version of the LDAP protocol to use; default is 3. | 
					
						
							|  |  |  | ;basedn=MyRootDN                     ; Base DN | 
					
						
							|  |  |  | ;user=MyDN                           ; Bind DN | 
					
						
							|  |  |  | ;pass=MyPassword                     ; Bind password | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ; Configuration Table | 
					
						
							|  |  |  | [config] | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; additionalFilter - This specifies an additional set of criteria to be used | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; when querying the LDAP server. | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | additionalFilter=(objectClass=AstConfig) | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; Attributes mapping (asterisk variable name = ldap attribute name) | 
					
						
							|  |  |  | ; When Asterisk requests the variable by the name of the value on the left, | 
					
						
							|  |  |  | ; this module will look up the attribute listed on the right. | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | filename = AstConfigFilename | 
					
						
							|  |  |  | category = AstConfigCategory | 
					
						
							|  |  |  | variable_name = AstConfigVariableName | 
					
						
							|  |  |  | variable_value = AstConfigVariableValue | 
					
						
							|  |  |  | cat_metric = AstConfigCategoryMetric | 
					
						
							|  |  |  | commented = AstConfigCommented | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; Extensions Table | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | [extensions] | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | context  =  AstExtensionContext | 
					
						
							|  |  |  | exten  =  AstExtensionExten | 
					
						
							|  |  |  | priority = AstExtensionPriority | 
					
						
							|  |  |  | app = AstExtensionApplication | 
					
						
							|  |  |  | appdata = AstExtensionApplicationData | 
					
						
							|  |  |  | additionalFilter=(objectClass=AstExtension) | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; Sip Users Table | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | [sip] | 
					
						
							| 
									
										
										
										
											2009-02-02 18:13:40 +00:00
										 |  |  | name = cn | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | amaflags = AstAccountAMAFlags | 
					
						
							|  |  |  | callgroup = AstAccountCallGroup | 
					
						
							|  |  |  | callerid = AstAccountCallerID | 
					
						
							| 
									
										
										
										
											2009-08-03 20:48:48 +00:00
										 |  |  | directmedia = AstAccountDirectMedia | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | context = AstAccountContext | 
					
						
							|  |  |  | dtmfmode = AstAccountDTMFMode | 
					
						
							|  |  |  | fromuser = AstAccountFromUser | 
					
						
							|  |  |  | fromdomain = AstAccountFromDomain | 
					
						
							|  |  |  | fullcontact = AstAccountFullContact | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | fullcontact = gecos | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | host = AstAccountHost | 
					
						
							|  |  |  | insecure = AstAccountInsecure | 
					
						
							|  |  |  | mailbox = AstAccountMailbox | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | md5secret = realmedPassword | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | nat = AstAccountNAT | 
					
						
							|  |  |  | deny = AstAccountDeny | 
					
						
							|  |  |  | permit = AstAccountPermit | 
					
						
							|  |  |  | pickupgroup = AstAccountPickupGroup | 
					
						
							|  |  |  | port = AstAccountPort | 
					
						
							|  |  |  | qualify = AstAccountQualify | 
					
						
							|  |  |  | restrictcid = AstAccountRestrictCID | 
					
						
							|  |  |  | rtptimeout = AstAccountRTPTimeout | 
					
						
							|  |  |  | rtpholdtimeout = AstAccountRTPHoldTimeout | 
					
						
							|  |  |  | type = AstAccountType | 
					
						
							|  |  |  | disallow = AstAccountDisallowedCodec | 
					
						
							|  |  |  | allow = AstAccountAllowedCodec | 
					
						
							|  |  |  | MusicOnHold = AstAccountMusicOnHold | 
					
						
							|  |  |  | regseconds = AstAccountExpirationTimestamp | 
					
						
							|  |  |  | regcontext = AstAccountRegistrationContext | 
					
						
							|  |  |  | regexten = AstAccountRegistrationExten | 
					
						
							|  |  |  | CanCallForward = AstAccountCanCallForward | 
					
						
							| 
									
										
										
										
											2008-10-09 23:25:53 +00:00
										 |  |  | ipaddr = AstAccountIPAddress | 
					
						
							|  |  |  | defaultuser = AstAccountDefaultUser | 
					
						
							|  |  |  | regserver = AstAccountRegistrationServer | 
					
						
							| 
									
										
										
										
											2009-05-28 10:43:51 +00:00
										 |  |  | lastms = AstAccountLastQualifyMilliseconds | 
					
						
							| 
									
										
										
										
											2009-02-02 18:13:40 +00:00
										 |  |  | additionalFilter=(objectClass=AsteriskSIPUser) | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; IAX Users Table | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | [iax] | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | amaflags = AstAccountAMAFlags | 
					
						
							|  |  |  | callerid = AstAccountCallerID | 
					
						
							|  |  |  | context = AstAccountContext | 
					
						
							|  |  |  | fullcontact = AstAccountFullContact | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | fullcontact = gecos | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | host = AstAccountHost | 
					
						
							|  |  |  | mailbox = AstAccountMailbox | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | md5secret = realmedPassword | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | deny = AstAccountDeny | 
					
						
							|  |  |  | permit = AstAccountPermit | 
					
						
							|  |  |  | port = AstAccountPort | 
					
						
							|  |  |  | qualify = AstAccountQualify | 
					
						
							|  |  |  | type = AstAccountType | 
					
						
							|  |  |  | disallow = AstAccountDisallowedCodec | 
					
						
							|  |  |  | allow = AstAccountAllowedCodec | 
					
						
							|  |  |  | regseconds = AstAccountExpirationTimestamp | 
					
						
							|  |  |  | regcontext = AstAccountRegistrationContext | 
					
						
							|  |  |  | regexten = AstAccountRegistrationExten | 
					
						
							|  |  |  | notransfer = AstAccountNoTransfer | 
					
						
							| 
									
										
										
										
											2009-05-28 10:43:51 +00:00
										 |  |  | lastms = AstAccountLastQualifyMilliseconds | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | additionalFilter=(objectClass=AstAccountIAX) | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; A Test Family | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | [testfamily] | 
					
						
							|  |  |  | MyUSERID = uid | 
					
						
							|  |  |  | additionalFilter=(objectClass=*) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [accounts] | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | amaflags = AstAccountAMAFlags | 
					
						
							|  |  |  | callgroup = AstAccountCallGroup | 
					
						
							|  |  |  | callerid = AstAccountCallerID | 
					
						
							| 
									
										
										
										
											2009-08-03 20:48:48 +00:00
										 |  |  | directmedia = AstAccountDirectMedia | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | context = AstAccountContext | 
					
						
							|  |  |  | dtmfmode = AstAccountDTMFMode | 
					
						
							|  |  |  | fromuser = AstAccountFromUser | 
					
						
							|  |  |  | fromdomain = AstAccountFromDomain | 
					
						
							|  |  |  | fullcontact = AstAccountFullContact | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | fullcontact = gecos | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | host = AstAccountHost | 
					
						
							|  |  |  | insecure = AstAccountInsecure | 
					
						
							|  |  |  | mailbox = AstAccountMailbox | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | md5secret = realmedPassword | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | nat = AstAccountNAT | 
					
						
							|  |  |  | deny = AstAccountDeny | 
					
						
							|  |  |  | permit = AstAccountPermit | 
					
						
							|  |  |  | pickupgroup = AstAccountPickupGroup | 
					
						
							|  |  |  | port = AstAccountPort | 
					
						
							|  |  |  | qualify = AstAccountQualify | 
					
						
							|  |  |  | restrictcid = AstAccountRestrictCID | 
					
						
							|  |  |  | rtptimeout = AstAccountRTPTimeout | 
					
						
							|  |  |  | rtpholdtimeout = AstAccountRTPHoldTimeout | 
					
						
							|  |  |  | type = AstAccountType | 
					
						
							|  |  |  | disallow = AstAccountDisallowedCodec | 
					
						
							|  |  |  | allow = AstAccountAllowedCodec | 
					
						
							|  |  |  | MusicOnHold = AstAccountMusicOnHold | 
					
						
							|  |  |  | regseconds = AstAccountExpirationTimestamp | 
					
						
							|  |  |  | regcontext = AstAccountRegistrationContext | 
					
						
							|  |  |  | regexten = AstAccountRegistrationExten | 
					
						
							|  |  |  | CanCallForward = AstAccountCanCallForward | 
					
						
							|  |  |  | additionalFilter=(objectClass=AstAccount) | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 |