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
  #51 (permalink)  
Old 01-05-2009, 03:47 PM
Intermediate Member
 
Posts: 15
Default

I went ahead and did the sip debug and these are what I believe would be the relevant lines for this extension. A lot of stuff scrolls so I just grabbed stuff that shows for that extension.

Code:
SIP Debugging enabled
  == Parsing '/etc/asterisk/manager.conf': Found
  == Manager 'administrator' logged on from 192.168.111.124
  == Manager 'administrator' logged off from 192.168.111.124

<--- SIP read from 111.111.111.111 --->
NOTIFY sip:our.server.com SIP/2.0
Via: SIP/2.0/UDP 111.111.111.111:1025;branch=z9hG4bK-f63b27b4
From: "My Name" <sip:100@our.server.com>;tag=c9023fb4dd76dbd1o0
To: <sip:our.server.com>
Call-ID: d29ded20-eaab2d55@192.168.10.100
CSeq: 363888 NOTIFY
Max-Forwards: 70
Event: keep-alive
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0


<------------->
--- (10 headers 0 lines) ---
Sending to 70.131.148.35 : 1025 (NAT)

<--- Transmitting (NAT) to 111.111.111.111:1025 --->
SIP/2.0 489 Bad event
Via: SIP/2.0/UDP 111.111.111.111:1025;branch=z9hG4bK-f63b27b4;received=111.111.111.111
From: "My Name" <sip:100@our.server.com>;tag=c9023fb4dd76dbd1o0
To: <sip:our.server.com>;tag=as241c3c1d
Call-ID: d29ded20-eaab2d55@192.168.10.100
CSeq: 363888 NOTIFY
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0


<------------>
I don't see anything relating to the manager account except for the logon and logoff which seems strange.
Reply With Quote
  #52 (permalink)  
Old 01-06-2009, 12:31 AM
Senior Member
 
Posts: 72
Default

I did not find any useful debugging command for the manager app yet. So far I used tcpdump But there is another thing to first. Please try to send an originate on asterisk cli. Example:
Code:
asterisk*CLI> originate sip/71 extension 100@intranet
For your setting this could be something like:
Code:
asterisk*CLI> originate sip/100 extension 5555555@phones
This is the equivalent to dialing using the Zimlet. If that also does not work we can isolate the problem to asterisk or phone related settings.
Reply With Quote
  #53 (permalink)  
Old 01-06-2009, 12:43 AM
Senior Member
 
Posts: 72
Default Sip Notify

In your output it looks like your phone does not allow SIP NOTIFY. In the Zimlet i try to check the extension state first before placing the call. It seems that this is done using a SIP NOTIFY that your phone does not accept for some reason. So asterisk tells me that this extension does not exist. Maybe you 'll find a setting in your voip phone to accept SIP NOTIFY. Or you could try to test it with a Software SIP client first.
Reply With Quote
  #54 (permalink)  
Old 01-06-2009, 06:44 AM
Intermediate Member
 
Posts: 15
Default

Using the originate command on the CLI the desk phone does get the call and when you pick up it shows it dialing out. However, the call doesn't reach the destination. For example, I set it to call my cell phone and it shows it as follows up to the point of me hanging up:

Code:
mail*CLI> originate sip/200 extension 5555555@phones
    -- Executing [5555555@phones:1] Set("SIP/200-006e1dd0", "CALLERID(ani)=1111111") in new stack
    -- Executing [5555555@phones:2] Dial("SIP/200-006e1dd0", "SIP/5555555@viatalk-2") in new stack
    -- Called 5555555@viatalk-2
  == Spawn extension (phones, 5555555, 2) exited non-zero on 'SIP/200-006e1dd0'
That last line is me hanging up of course.

On the other issue you mentioned, I tried using the Ekiga softphone with extension 200 and it still did not get the call just like the desk phone. I'll check into the sip notify feature on the phone.
Reply With Quote
  #55 (permalink)  
Old 01-07-2009, 12:29 AM
Senior Member
 
Posts: 72
Default

hi bluecc
Any news? I got it working with Ekiga Softphone. So i assume there are issues in your dialplan or asterisk config.
Reply With Quote
  #56 (permalink)  
Old 01-08-2009, 02:08 AM
Senior Member
 
Posts: 72
Default

Hmm sadly there is at least one other person that as the same problem. There seems a problem with the extension check for certain phones or configurations. I don't now the exact problem yet. Maybe you could send me your sip.conf and extension.conf? As workaround try the older version 0.5. You should find it in the this Forum as attachment.
Reply With Quote
  #57 (permalink)  
Old 01-08-2009, 02:43 AM
Senior Member
 
Posts: 72
Default Hints!

Finally got the problem! Actually for the ExtensionState action you need hints. So starting with Zimlet version 0.6 I added a feature to check the ExtensionState before placing the call. Seems that this is an old issue. Sorry!
[Asterisk-Dev] ExtensionState problems using Manager.conf API
So the easiest way ist to add
Code:
exten => 200,hint,SIP/200
To your phones context.
Reply With Quote
  #58 (permalink)  
Old 01-08-2009, 05:34 AM
Partner (VAR/HSP)
 
Posts: 15
Default

I have tested your solution, in my dialplan i have the hint option, but still having the same trouble
Reply With Quote
  #59 (permalink)  
Old 01-08-2009, 07:42 AM
Senior Member
 
Posts: 72
Default

Ok i created a Version 0.61 for you where you can disable the ExtensionState check.
You need to add Property
Code:
<property name="astNoExtenCheck">true</property>
to the Zimlets config.xml
Please let me know if this works.
Attached Files
File Type: zip ch_bnc_asterisk.zip (348.0 KB, 27 views)
Reply With Quote
  #60 (permalink)  
Old 01-08-2009, 09:47 AM
Senior Member
 
Posts: 72
Default Get hints working

In case you would still like to try the ExtenState stuff,
you probably need to add some options to sip.conf for get hints working

Code:
[general]
allowsubscribe = yes
notifyringing = yes
notifyhold = yes
limitonpeers = yes
You may check with cli core show hints
Code:
asterisk*CLI> core show hints
    -= Registered Asterisk Dial Plan Hints =-
                     82@hints               : SIP/82                State:Idle            Watchers  0
...
You may also check Asterisk standard extensions - voip-info.org
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.