Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old 12-22-2009, 01:45 PM
Special Member
 
Posts: 108
Default Hmmm... doesn't seem to configure properly for me

I've followed the instructions at the top of this thread and deployed the zimlet per the INSTALL.txt but

I keep getting "hostname cannot be null" in the mailboxd.log file.

I've modified the hostname in the ch_bnc_asterisk_config.xml file before running:
Code:
zmzimletctl configure /tmp/ch_bnc_asterisk_config.xml
Then after restarting zimbra and logging the Zimbra client off. It still doesn't appear that ZCS 6.01 is using the proper config directive values.

Any ideas what I need to do to force the zimlet to accept the configuration?

jimbo
Reply With Quote
  #22 (permalink)  
Old 12-23-2009, 02:39 AM
Loyal Member
 
Posts: 98
Default

Have you put fqdn or host ip address? Only worked for me using fqdn
Reply With Quote
  #23 (permalink)  
Old 12-23-2009, 09:34 AM
Special Member
 
Posts: 108
Default

I used a fqn, however it appears that none of the other config directives are set either. It complains that the asterisk management port is null as well and says it will use 5038. I've set the port number in the directive as 5038 so it should not complain that it is null.

So I'm thinking it's not reconfiguring the zimlet when I run the zmzimletctl configure command.
Reply With Quote
  #24 (permalink)  
Old 12-23-2009, 10:50 AM
Active Member
 
Posts: 29
Default

can you show the ch_bnc_asterisk_config.xml file ?
Reply With Quote
  #25 (permalink)  
Old 12-24-2009, 11:31 AM
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
  #26 (permalink)  
Old 12-27-2009, 12:57 AM
Active Member
 
Posts: 29
Default

did you change something in this part ?

<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>
Reply With Quote
  #27 (permalink)  
Old 12-28-2009, 11:23 AM
Special Member
 
Posts: 108
Default

Yes, I changed them to reflect my environment settings...
hostname points to my Zimbra mail server domain
astManagerIP points to my Asterisk server
astManagerUser points to the user I setup in Asterisk for connecting
astManagerSecret is the password I setup for the Asterisk user

The values in my previous post are bogus as I did not want to post them in a public forum.
Reply With Quote
  #28 (permalink)  
Old 12-28-2009, 12:27 PM
Active Member
 
Posts: 29
Default

what about the asterisk server configuration ?

Can you show these files: manager.conf, sip.conf and extensions.conf

is it the same context used in these files and in your *.xml file ?
Reply With Quote
  #29 (permalink)  
Old 12-29-2009, 07:07 AM
Junior Member
 
Posts: 8
Default Let me report about mine.

First I follow this The five minute Asterisk setup and VoIP intro - Roboguys.com - Where sh#! tends to happen.
to setup to user admin & user2.
and I can use "admin" to dial 9999 using X-Lite client.
But I can not call through the zimlet.
The CLI error message is :
chan_sip.c 4940 create_addr: No such host: 123456.
In that error, 123456 is the phone number for admin.

Please helps, thanks.

Jim
Attached Files
File Type: zip config.zip (35.5 KB, 46 views)
Reply With Quote
  #30 (permalink)  
Old 12-30-2009, 02:04 AM
Active Member
 
Posts: 29
Default

the zimlet uses the manager.conf. You have to enable and configurate it.


example:

[general]
enabled = yes

port = 5038


bindaddr = server IP address

allowmultiplelogin = yes ; IF set to no, rejects manager logins that are already in use.

[admin]
secret = mysecret
;deny=0.0.0.0/0.0.0.0
permit= network class (ex: 192.168.0.0/255.255.255.0)

displayconnects = yes ; Display on CLI user login/logoff

read = all
write = all
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.