I changed my Server configuration a bit...
so I now have the ZCS 6 Network Edition and Asterisk 1.6.2 with
FreePBX (it's really the best (free) way to configure your asterisk server) on top.
my zimlet config file looks like this:
Code:
<zimletConfig name="ch_bnc_asterisk" version="0.65">
<global>
<property name="astManagerIp">127.0.0.1</property>
<property name="astManagerPort">5038</property>
<property name="astManagerUser">zimbraConnect</property>
<property name="astManagerSecret">mysecret</property>
<property name="astActionTimeout">8000</property>
<property name="astNoExtenCheck">true</property>
<property name="astDialContext"></property>
<property name="astDialChannelType">SIP</property>
<property name="srcPhonePrefix"></property>
<property name="calleePrefix"></property>
<property name="numberCleanRegExp">\s|\.|-|\,|(\(0\)|\(|\))</property>
<property name="iddPrefix">00</property>
<property name="astSMSVariable">SMS_MESSAGE</property>
<property name="astSMSSendContext">smssend</property>
<property name="astSMSCenterChannel">CAPI/g1/0622100000</property>
<property name="enableSMS">true</property>
<property name="maxSMSLength">160</property>
<property name="phonebookBaseUrl">http://www.klicktel.de/inverssuche/index/search</property>
<property name="phonebookUrlCommonParams">method=searchSimple&_dvform_posted=1</property>
<property name="phonebookUrlNumberParam">phoneNumber</property>
</global>
</zimletConfig>
my manager.conf (well in freepbx it is manager_custom.conf):
Code:
[zimbraConnect]
secret = mysecret
read = system,call,log,verbose,command,agent,user,config,originate
write = system,call,log,verbose,command,agent,user,config,originate
my extension.conf (extension_custom.conf):
Code:
; zimbraout is outdials to external numbers
[zimbraout]
exten => _X.,1,Set(CALLERID(num)=[sipgateID])
exten => _X.,2,Dial(SIP/${EXTEN}@SipGate_out,30,trg)
exten => _X.,3,Hangup
; zimbrain is for internal calls
[zimbrain]
exten => _X.,1,Dial(SIP/${EXTEN},30,trg)
exten => _X.,2,Hangup
; this is the dialplan, to figure out, if it is a internal or external call,
; if the first digit is a zero, it's outbound
[zimbracall]
exten => _X.,1,GotoIf($["${EXTEN:0:1}" = "0"]?3:2)
exten => _X.,2,Goto(zimbrain,${EXTEN},1)
exten => _X.,3,Goto(zimbraout,${EXTEN},1)
exten => _X.,4,Hangup hope this helps