Results 1 to 7 of 7

Thread: Problem with astreisk's zimlet installation

  1. #1
    Join Date
    May 2009
    Posts
    6
    Rep Power
    6

    Default Problem with astreisk's zimlet installation

    Hi,

    I have zimbra network edition v5.0.16 installed on RHEL5.3

    I want to install asterisk's zimlet, so I followed the installation instructions from the website

    Asterisk PBX Integration Zimlet - BNC Business Network Communications AG


    but when I click on "Get Info" I got this errors on mailboxd.log:


    2009-07-13 15:06:21,324 INFO [btpool0-7] [name=user@wodel.wd;mid=151;ip=172.16.72.1;ua=Zimbr aWebClient - FF3.0 (Linux)/5.0.16_GA_2921.RHEL5;] soap - SearchRequest
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Getting ch_bnc_asterisk host config
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - {local={}, site={}, global={phonebookBaseUrl=http://tel.local.ch/q/, maxSMSLength=160, enableSMS=true, phonebookUrlNumberParam=phone, phonebookUrlCommonParams=ext=1}}
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astManagerIp' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astManagerPort' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astManagerUser' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astManagerSecret' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astDialContext' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astDialChannelType' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astActionTimeout' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astNoExtenCheck' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'srcPhonePrefix' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'calleePrefix' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'numberCleanRegExp' value 'null'
    2009-07-13 15:06:31,826 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'iddPrefix' value 'null'
    2009-07-13 15:06:31,827 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'enableSMS' value 'true'
    2009-07-13 15:06:31,827 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astSMSSendContext' value 'null'
    2009-07-13 15:06:31,827 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astSMSCenterChannel' value 'null'
    2009-07-13 15:06:31,827 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'astSMSVariable' value 'null'
    2009-07-13 15:06:31,827 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'maxSMSLength' value '160'
    2009-07-13 15:06:31,827 INFO [btpool0-9] [] zimlet - ch_bnc_asterisk userAstDialContext overwrites global astDialContext value: null
    2009-07-13 15:06:31,827 WARN [btpool0-9] [] zimlet - Parse error while getting 'astManagerPort'. Using default 5038
    2009-07-13 15:06:31,827 DEBUG [btpool0-9] [] zimlet - astManagerIp:null port:5038 user:null
    2009-07-13 15:06:31,838 ERROR [btpool0-9] [] zimlet - Zimlet parameter 'astActionTimeout' is null. Check zimlet config!
    2009-07-13 15:06:31,838 DEBUG [btpool0-9] [] zimlet - Encoding: UTF-8
    2009-07-13 15:06:31,838 DEBUG [btpool0-9] [] zimlet - URL Params:
    info: callee: null smsTo: null smsMsg:
    null
    2009-07-13 15:06:31,839 INFO [btpool0-9] [] zimlet - Do AMI login.
    2009-07-13 15:06:31,840 INFO [btpool0-9] [] ManagerConnectionImpl - Connecting to null:5038
    2009-07-13 15:06:31,907 ERROR [btpool0-9] [] log - Nested in org.apache.jasper.JasperException: java.lang.IllegalArgumentException: hostname can't be null:
    java.lang.IllegalArgumentException: hostname can't be null



    no matter what I've tried, to unzip the zimlet and to make changes to the config_template.xml file, I got the same errors.......

    any idea

  2. #2
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    7

    Default Did you set host name from config.xml ?

    Hi,

    This extension seems to be working here, with zimbra OS 5.0.18

    Post your xml config

    Regards,
    Release 5.0.4_GA_2101.UBUNTU6 UBUNTU6_64 NETWORK edition

  3. #3
    Join Date
    May 2009
    Posts
    6
    Rep Power
    6

    Default

    Hi,

    this is my xml config file:


    <zimletConfig name="ch_bnc_asterisk" version="0.65">
    <global>
    <property name="astManagerIp">192.168.2.224</property>
    <property name="astManagerPort">5038</property>
    <property name="astManagerUser">admin</property>
    <property name="astManagerSecret">password</property>
    <property name="astActionTimeout">8000</property>
    <property name="astNoExtenCheck">true</property>
    <property name="astDialContext">asterisk</property>
    <property name="astDialChannelType">SIP</property>
    <property name="srcPhonePrefix">03185858</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">sms-send</property>
    <property name="astSMSCenterChannel">CAPI/g1/0622100000</property>
    <property name="enableSMS">true</property>
    <property name="maxSMSLength">160</property>
    <property name="phonebookBaseUrl">http://voip.domain.tld/q/</property>
    <property name="phonebookUrlCommonParams">ext=1</property>
    <property name="phonebookUrlNumberParam">phone</property>
    </global>
    </zimletConfig>


    now I can get the server information:

    2009-09-06 11:08:43,190 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astManagerIp' value '192.168.2.224'
    2009-09-06 11:08:43,190 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astManagerPort' value '5038'
    2009-09-06 11:08:43,190 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astManagerUser' value 'admin'
    2009-09-06 11:08:43,190 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astManagerSecret' value 'password'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astDialContext' value 'asterisk'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astDialChannelType' value 'SIP'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astActionTimeout' value '8000'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astNoExtenCheck' value 'true'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'srcPhonePrefix' value '03185858'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using local config attribute 'calleePrefix' value 'null'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'numberCleanRegExp' value '\s|\.|-|\,|(\(0\)|\(|\))'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'iddPrefix' value '00'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'enableSMS' value 'true'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astSMSSendContext' value 'sms-send'
    2009-09-06 11:08:43,191 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astSMSCenterChannel' value 'CAPI/g1/0622100000'
    2009-09-06 11:08:43,192 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'astSMSVariable' value 'SMS_MESSAGE'
    2009-09-06 11:08:43,192 DEBUG [btpool0-8] [] zimlet - Using global config attribute 'maxSMSLength' value '160'
    2009-09-06 11:08:43,192 DEBUG [btpool0-8] [] zimlet - astManagerIp:192.168.2.224 port:5038 user:admin
    2009-09-06 11:08:43,192 DEBUG [btpool0-8] [] zimlet - Encoding: UTF-8
    2009-09-06 11:08:43,192 DEBUG [btpool0-8] [] zimlet - URL Params:
    info: callee: null smsTo: null smsMsg:
    null


    but I can't make a call, I get error "failed to dial 444"

    2009-09-06 11:14:56,979 DEBUG [btpool0-9] [] zimlet - Getting ch_bnc_asterisk host config
    2009-09-06 11:14:56,979 DEBUG [btpool0-9] [] zimlet - {local={}, site={}, global={enableSMS=true, astManagerIp=192.168.2.224, astManagerPort=5038, astManagerUser=admin, astSMSSendContext=sms-send, astSMSCenterChannel=CAPI/g1/0622100000, phonebookUrlCommonParams=ext=1, astNoExtenCheck=true, astDialChannelType=SIP, iddPrefix=00, astSMSVariable=SMS_MESSAGE, phonebookBaseUrl=http://voip.domain.tld/q/, maxSMSLength=160, astDialContext=asterisk, astManagerSecret=password, numberCleanRegExp=\s|\.|-|\,|(\(0\)|\(|\)), phonebookUrlNumberParam=phone, srcPhonePrefix=03185858, astActionTimeout=8000, calleePrefix=}}
    2009-09-06 11:14:56,979 DEBUG [btpool0-9] [] zimlet - -----------------------------------------------
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - {defaultPhone=workPhone, srcPhone=666, copySMSSentEmail=, userAstDialContext=asterisk}
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - -----------------------------------------------
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astManagerIp' value '192.168.2.224'
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astManagerPort' value '5038'
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astManagerUser' value 'admin'
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astManagerSecret' value 'password'
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astDialContext' value 'asterisk'
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astDialChannelType' value 'SIP'
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astActionTimeout' value '8000'
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astNoExtenCheck' value 'true'
    2009-09-06 11:14:56,980 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'srcPhonePrefix' value '03185858'
    2009-09-06 11:14:56,981 DEBUG [btpool0-9] [] zimlet - Using local config attribute 'calleePrefix' value 'null'
    2009-09-06 11:14:56,981 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'numberCleanRegExp' value '\s|\.|-|\,|(\(0\)|\(|\))'
    2009-09-06 11:14:56,981 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'iddPrefix' value '00'
    2009-09-06 11:14:56,981 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'enableSMS' value 'true'
    2009-09-06 11:14:56,981 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astSMSSendContext' value 'sms-send'
    2009-09-06 11:14:56,981 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astSMSCenterChannel' value 'CAPI/g1/0622100000'
    2009-09-06 11:14:56,982 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'astSMSVariable' value 'SMS_MESSAGE'
    2009-09-06 11:14:56,982 DEBUG [btpool0-9] [] zimlet - Using global config attribute 'maxSMSLength' value '160'
    2009-09-06 11:14:56,982 DEBUG [btpool0-9] [] zimlet - astManagerIp:192.168.2.224 port:5038 user:admin
    2009-09-06 11:14:56,982 DEBUG [btpool0-9] [] zimlet - Encoding: UTF-8
    2009-09-06 11:14:56,983 DEBUG [btpool0-9] [] zimlet - URL Params:
    info: null callee: 444 smsTo: null smsMsg:
    null
    2009-09-06 11:14:56,983 INFO [btpool0-9] [] zimlet - ch_bnc_asterisk callee:444
    2009-09-06 11:14:56,983 DEBUG [btpool0-9] [] zimlet - Checking Extension state
    2009-09-06 11:14:56,983 DEBUG [btpool0-9] [] zimlet - Checking Extension state skipped due to global config property 'astNoExtenCheck'
    2009-09-06 11:14:56,983 DEBUG [btpool0-9] [] zimlet - Creating orignate action for dialing
    2009-09-06 11:14:56,983 INFO [btpool0-9] [] zimlet - Do AMI login.
    2009-09-06 11:14:56,983 INFO [btpool0-9] [] ManagerConnectionImpl - Connecting to 192.168.2.224:5038
    2009-09-06 11:14:56,992 INFO [Asterisk-Java ManagerConnection-8-Reader-0] [] ManagerConnectionImpl - Connected via Asterisk Call Manager/1.1
    2009-09-06 11:14:57,078 INFO [btpool0-9] [] ManagerConnectionImpl - Successfully logged in
    2009-09-06 11:14:57,078 INFO [btpool0-9] [] ManagerConnectionImpl - Determined Asterisk version: Asterisk 1.6
    2009-09-06 11:14:57,120 DEBUG [btpool0-9] [] zimlet - handleRequest ok
    2009-09-06 11:14:57,121 DEBUG [btpool0-9] [] zimlet - {"callee":"444","astVersion":"No such command 'show version' (type 'help show version' for other possible commands)<br />","extenStateWarning":false,"astProtocol":"Asteri sk Call Manager/1.1","error":false,"originateSuccess":false,"astSe rver":"192.168.2.224:5038","version":"0.65"}
    2009-09-06 11:14:57,122 DEBUG [btpool0-9] [] zimlet - AMI logoff

    2009-09-06 11:14:57,125 INFO [btpool0-9] [] ManagerConnectionImpl - Closing socket.
    2009-09-06 11:14:57,127 INFO [Asterisk-Java ManagerConnection-8-Reader-0] [] ManagerReaderImpl - Terminating reader thread: No more lines available: Scanner closed


    so what's missing???

  4. #4
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    7

    Default

    This is another error now.

    I think it maybe asterisk configuration issue (choosing a diferent DialContext?), I would play with srcPhonePrefix and callePrefix parameters.

    I can't help you with this new issue (I don't have any knowledge about asterisk)

    Regards,
    Release 5.0.4_GA_2101.UBUNTU6 UBUNTU6_64 NETWORK edition

  5. #5
    Join Date
    Aug 2008
    Posts
    72
    Rep Power
    7

    Default

    Just to clarify: Zimlet config is done using "zmzimletctl configure" tool and not by packing/unpacking the zimlet!

  6. #6
    Join Date
    Aug 2008
    Posts
    72
    Rep Power
    7

    Default Problem with asterisk 1.6

    Hi,

    Quote Originally Posted by wodel View Post
    Hi,
    {"callee":"444","astVersion":"No such command 'show version' (type 'help show version' for other possible commands)<br />","extenStateWarning":false,"astProtocol":"Asteri sk Call Manager/1.1","error":false,"originateSuccess":false,"astSe rver":"192.168.2.224:5038","version":"0.65"}

    so what's missing???
    I see the problem here No such command 'show version' (type 'help show version' for other possible commands)
    I did a "show version" command in manager to get the version information for the Asterisk Info in the zimlet. It seems that this commend is unsupportet in asterisk 1.6. But beside the Asterisk Info the zimlet should work. So i need to fix this in next version.

    Regards,
    Christof

  7. #7
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    7

    Default local variables doesn't work with zimbra Network

    I had to use <global> .. </global> and remove <host name...>...</host> and then Zimbra NE worked with asterisk.

    When local variables are in config, "Parse error while getting 'astManagerPort'" are show in the log messages.
    Release 5.0.4_GA_2101.UBUNTU6 UBUNTU6_64 NETWORK edition

Similar Threads

  1. [SOLVED] Install Problem in Ubuntu 6.06 Server
    By xtimox in forum Installation
    Replies: 16
    Last Post: 03-27-2008, 10:36 AM
  2. Domain Admin Error: Permission Denied
    By shanson in forum Administrators
    Replies: 3
    Last Post: 05-29-2007, 06:48 AM
  3. Problem with Ubuntu installation
    By Max Ma in forum Installation
    Replies: 3
    Last Post: 04-13-2007, 11:25 AM
  4. Installation problem
    By sywong70 in forum Installation
    Replies: 5
    Last Post: 11-07-2005, 09:01 PM
  5. Installation problem
    By charlie in forum Administrators
    Replies: 1
    Last Post: 10-14-2005, 09:55 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
  •