Page 3 of 9 FirstFirst 12345 ... LastLast
Results 21 to 30 of 89

Thread: Asterisk PBX Integration Zimlet for ZCS 6

  1. #21
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    9

    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

  2. #22
    Join Date
    Jun 2006
    Location
    Viseu
    Posts
    105
    Rep Power
    9

    Default

    Have you put fqdn or host ip address? Only worked for me using fqdn

  3. #23
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    9

    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.

  4. #24
    Join Date
    Nov 2009
    Location
    Nantes, France
    Posts
    29
    Rep Power
    5

    Default

    can you show the ch_bnc_asterisk_config.xml file ?

  5. #25
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    9

    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>

  6. #26
    Join Date
    Nov 2009
    Location
    Nantes, France
    Posts
    29
    Rep Power
    5

    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>

  7. #27
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    9

    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.

  8. #28
    Join Date
    Nov 2009
    Location
    Nantes, France
    Posts
    29
    Rep Power
    5

    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 ?

  9. #29
    Join Date
    Oct 2009
    Posts
    8
    Rep Power
    6

    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 Attached Files

  10. #30
    Join Date
    Nov 2009
    Location
    Nantes, France
    Posts
    29
    Rep Power
    5

    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

Similar Threads

  1. Asterisk PBX Integration Zimlet (new)
    By chlauber in forum Zimlets
    Replies: 197
    Last Post: 01-20-2014, 02:22 PM
  2. Replies: 6
    Last Post: 03-05-2010, 12:13 AM
  3. Samba and POSIX undeploy problem
    By catnipper in forum Zimlets
    Replies: 0
    Last Post: 09-02-2009, 10:51 AM
  4. Replies: 1
    Last Post: 08-19-2009, 01:12 AM
  5. weird Asterisk zimlet behaviour
    By bbarnett in forum Zimlets
    Replies: 4
    Last Post: 10-17-2007, 08:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •