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 Display Modes
  #121 (permalink)  
Old 08-13-2009, 11:00 AM
Senior Member
 
Posts: 58
Default

Ah, yes, I should have made the terminal anchor optional. This should work:

(?:\s|^)(?:\+\d{1,3}(?:\s|\.|\-|\,)?)?(?:\(\d{1,4}\))?\s?\d{1,11}(?:(?:\-|\.|\,|\s)\d{1,10}){0,3}(?:\s|$)

at least it is for me. Of course, it will also match any standalone number but, as long as it does not interfere with other Zimlets, I suppose I'd rather be greedy than overly discriminating. Certainly open to improvements. I'll attach the modified Zimlet if the forum allows it. Hope this helps - John

By the way, for the security conscious:
me@mycomputer:/data/Tech/Zimbra$ md5sum ch_bnc_asterisk_0.65mod.zip
0b3b6ebb7165ffe623ddff2b7af42d45 ch_bnc_asterisk_0.65mod.zip
Attached Files
File Type: zip ch_bnc_asterisk_0.65mod.zip (349.5 KB, 18 views)
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society

Last edited by gracedman : 08-13-2009 at 11:02 AM. Reason: Add md5sum
Reply With Quote
  #122 (permalink)  
Old 08-13-2009, 12:01 PM
Starter Member
 
Posts: 2
Default

thanks gracedman for the quick reply
that did it for me as well..
Works perfectly now..

once again i would like to thank chlauber for an amazing zimlet..
Reply With Quote
  #123 (permalink)  
Old 09-03-2009, 12:08 PM
Junior Member
 
Posts: 8
Default

Hi all, I've been holding off on trying any Zimlets until 6.0 because I anticipated breakage. Now that 6.0 is here I'm finding that this Zimlet won't install properly. Please see the below output:

Quote:
zimbra@mail:~$ zmzimletctl install zimlets/ch_bnc_asterisk.zip
[] INFO: Installing Zimlet ch_bnc_asterisk on this host.
zimbra@mail:~$

....edited XML file...

zimbra@mail:~$ zmzimletctl configure /tmp/ch_bnc_asterisk_config.xml
[] INFO: Configure zimlet on mail.example.com
com.zimbra.common.soap.SoapFaultException: no such zimlet: ch_bnc_asterisk
ExceptionId:btpool0-24:1252000484991:f48a24a9c8f99260
Code:account.NO_SUCH_ZIMLET
Thanks much - this would be useful!
Reply With Quote
  #124 (permalink)  
Old 09-13-2009, 09:01 PM
Starter Member
 
Posts: 2
Default

Hello,

I have successfully been able to install the zimlet on zimbra 6 and enable it.
On a user session, I can correctly enable it and configure, then it fails when clicking on a phone number showing an empty error box ("Asterisk PBX Integration error").

I can't see any connection on the asterisk side (with both debug and verbose set to 9), the manager account correctly works (tested with gastman) and the server is reachable from the zimbra box.

I also checked the Error console from Firefox with no any obvious error there and I don't see anything on the zimbra side either (mailbox.log with DEBUG set for zimlets).

Any idea ? I know Zimbra 6 is quite new and I was actually surprised that this zimlet appeared to work so well on that new release, not much must be wrong to have it working correctly.

Thanks
Reply With Quote
  #125 (permalink)  
Old 09-13-2009, 09:56 PM
Starter Member
 
Posts: 2
Default

Tracing it a bit further, the issue appears to be with the AJAX request to:
/service/zimlet/ch_bnc_asterisk/asterisk.jsp

It gets an error 400 from Jetty meaning: HTTP method POST is not supported by this URL

I couldn't find any error on the Zimbra server other than a return code of 400 in jetty's access log.
Reply With Quote
  #126 (permalink)  
Old 09-14-2009, 01:00 AM
Senior Member
 
Posts: 63
Default

Hi all

As i mentioned earlyer. The ch_bnc_asterisk is not yet zimbra 6 ready. I am working on a new version that is zimbra 6 ready. Some things have changed inside zimbra so the jsp part does not compile anymore. In the meantime you can try version 0.62 Download Asterisk PBX Integration Zimlet from SourceForge.net with zimbra 6. I would souppose this to work with zimbra 6 because this has not yet the functionality that causes troubles with zimbra 6. But i did not test it so far.

Regards,
Christof
Reply With Quote
  #127 (permalink)  
Old 10-23-2009, 12:12 AM
Member
 
Posts: 13
Question pbx integration error

Hi All,

I have installed ch_bnc_asterisk_0.65.zip and ch_bnc_asterisk_0.62.zip with zimbra 6.0.1. My asterisk server 1.6.1 is working fine i have tested with the x-lite soft phone, my ch_bnc_asterisk installation also goes fine does not return any error but whenever i dial the extension number from my zimbra zimlet it gives me error pbx integration error. I have followed the link given below. set the debug level to max also. But unable to identify the problem.

Asterisk PBX Integration Zimlet - BNC Business Network Communications AG

Am i missing something or doing some thing wrong.

Thanks,
Sikander
Reply With Quote
  #128 (permalink)  
Old 10-23-2009, 08:06 AM
Moderator
 
Posts: 5,806
Default

How technically feasible would it be to be able to match sip: addresses, perform URL dialling, and then bridge the call ?

Bug 42021 - New Contact Field called SIP or VOIP
__________________
SplatNIX IT Services :: Innovation through Collaboration™


http://www.messagefortress.com

Last edited by uxbod : 10-23-2009 at 08:40 AM.
Reply With Quote
  #129 (permalink)  
Old 10-25-2009, 11:50 PM
Member
 
Posts: 13
Default asterisk.jsp

Hi uxbod,

Thanks for your reply.

How can I match the sip addresses, when i dial the number from zimbra server
account using asterisk zimlets i am getting this error.

http method post is not supported by this url reason

/service/zimlets/com_zimbra_asterisk/asterisk.jsp

Any idea how can i resolve this error. Is this bug or i am doing something wrong.

Thanks
Reply With Quote
  #130 (permalink)  
Old 10-26-2009, 12:24 AM
Senior Member
 
Posts: 58
Default sip dialing

Just a quick, uneducated guess - I would think sip dialing would need to be a separate zimlet or require major revision to the code. The current code seems to depend on regex matching and then removal of extraneous characters. It would be extremely difficult to find one regex to match both numeric and sip dialing and then to properly cull extraneous characters from both. I haven't looked at it in a while so I really am just guessing from memory - John
__________________
www.spiritualoutreach.com
Making Christianity intelligible to secular society
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0