View Single Post
  #25 (permalink)  
Old 12-24-2009, 10:31 AM
jimbo jimbo is offline
Special Member
 
Posts: 108
Default

Thanks for helping with this, much appreciated!

Here's the contents of my config file:
Code:
<zimletConfig name="ch_bnc_asterisk" version="0.65">
  <!-- 
  	This settings be global or local, which means per host. If properties are in global scope host settings will be overwritten.
   -->
  <host name="mail.mydomain.com">
    <property name="astManagerIp">pbx.mydomain.com</property>
    <property name="astManagerPort">5038</property>
    <property name="astManagerUser">zimbra</property>
    <property name="astManagerSecret">mysecretpassword</property>
    <!--  
    	Timeout for asterisk actions in [ms]
    -->
    <property name="astActionTimeout">8000</property>
    <!-- 
    	Don't do Action ExtensionState before doing other actions. This may be useful because
    	the ExtensionState action does need hints in dialplan to work correctly. But you will have less accurate
    	warning messages.
     -->
    <property name="astNoExtenCheck">true</property>
    <!-- 
		Dialplan context used for dialing
	-->
    <property name="astDialContext">from-internal</property>
    <!-- 
		Asterisk channel type to use. E.g. 'SIP', 'ZAP' etc.
		Action will use ${astChannelType}/${srcPhone} 
		srcPhone is part of user config 
	-->
    <property name="astDialChannelType">SIP</property>
    <!-- 
    	srcPhonePrefix is used to compose the caller like
    	${srcPhonePrefix}${srcPhone} where ${srcPhone} is 
    	user configurable local number
    -->
    <property name="srcPhonePrefix"></property>
    <!-- 
    	Prefix prepended to every dialed number
    -->
    <property name="calleePrefix"></property>
    <!-- 
    	Regexp applied to any user inputed number. Matches will be removed.
    -->
    <property name="numberCleanRegExp">\s|\.|-|\,|(\(0\)|\(|\))</property>
    <!-- 
    	When dialing international number '+' gets 
    	replaced with the  iddPrefix
    -->
    <property name="iddPrefix">00</property>
    <!-- 
    	Variable name used in SMS() application for SMS message body
     -->
    <property name="astSMSVariable">SMS_MESSAGE</property>
    <!-- 
		Dialplan context used for sending sms
	-->
    <property name="astSMSSendContext">sms-send</property>
    <!-- 
		Full asterisk channel for sms center
	-->
    <property name="astSMSCenterChannel">CAPI/g1/0622100000</property>
  </host>

  <!-- 
  	These settings have to be global because of a limitation when getting properties in zimlet's js.
   -->
  <global>
      <!-- 
    	Enable/Disable SMS sending through asterisk originate function
    	Needs a correctly configured SMS() application in dialplan that
    	gets the SMS message from dialplan variable "astSMSVariable"
    	example for astSMSVariable = 'SMS_MESSASGE':
    	
    	[sms-send]
    	exten => _X.,n,SMS(${CALLERID(num)},${EXTEN},${SMS_MESSAGE})
		exten => _X.,n,SMS(${CALLERID(num)})
		exten => _X.,n,Hangup
		
    -->
    <property name="enableSMS">false</property>
    <property name="maxSMSLength">160</property>
    <!-- 
    	URL to search a Phonebook entry in web
     -->
     <property name="phonebookBaseUrl">http://tel.local.ch/q/</property>
     <!-- 
     	Url parameters used for search in form param1=val1&param2=val2..
      -->
     <property name="phonebookUrlCommonParams">ext=1</property>
     <!-- 
     	Url param which value will be filled with the phone number to search
      -->
     <property name="phonebookUrlNumberParam">phone</property>
  </global>
</zimletConfig>
Reply With Quote