[Asterisk-Users] hints and the sNOM 360

Shanon Swafford listbox at swaffordfamily.com
Wed Sep 21 22:36:10 MST 2005


SIP Message Reference:

# Reboot Phone which is 2000 monitoring 2001s state:
UA--->>> SUBSCRIBE --->>>Asterisk
UA<<<---   200 OK  <<<---Asterisk
# Asterisk saves subscription:
# Wait for a call:
# Call Comes to 2001:
# Asterisk should realize somehow that it needs to NOTIFY 2000 about the call.
UA<<<---   NOTIFY  <<<---Asterisk
UA--->>>   200 OK  --->>>Asterisk
# Phone light flashes
# 2001 Answers call
UA<<<---   NOTIFY  <<<---Asterisk
UA--->>>   200 OK  --->>>Asterisk
# Phone LED goes steady

# Then another NOTIFY to turn off the LED when the call is over.
# This works on my Snom 4S SIP Proxy.

I don't know much about the Asterisk side, but I do know that the monitoring phone should receive a NOTIFY when the monitored phone
is called.  Until Asterisk sends the NOTIFY, it won't work.

If you watch the sip debug output on *, does it show * sending a NOTIFY when the call is made?  Is it to the correct IP and PORT
that the phone is listening on?  This might NOT be 5060.

If not, the new question is why:)

You try to register your phone to 2001@<ip_of_asterisk> instead of "asterisk".  Maybe * acts different that way.  If you do this,
make sure to "redo" your destination so that the phone will auto fill 2001 at xx.xx.xx.xx rather than keeping the existing
2001 at asterisk.

Last, see this message from Monday:
http://lists.digium.com/pipermail/asterisk-users/2005-September/126034.html
Is that a coincedence?

Shanon
ABP Technology

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Paul Hewlett
Sent: Monday, September 19, 2005 11:49 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] hints and the sNOM 360


Hi 

   I am trying to get a SNOM 360 to monitor other extensions i.e. when someone 
makes a call to/from another extension, one of the LED's on the SNOM 360 will 
change state. I am using 1.0.9/bristuff-8l.

   I have 2 extensions - 2001 is a SNOM 190, 2002 is a 360 - both are running 
the latest firmware. (3.60i for 190, 4.0 for 360). I have read all the 
relevant articles on the wiki on 'hints' and also on the 'devstate' app.

   I set the first function key on the 360 to extension 2001 - this transforms 
itself into <sip:2001 at asterisk;user=phone> when I save it. The function key 
type is set to 'Destination' as recommended by a number of articles on the 
Wiki. 

<aside>
This seems to contradict the 360 manual which states that the function key 
type should be set to 'Line'. </aside>

In the dialplan I put

    [myhints]
    exten => 2001,hint,sip/2001
    exten => 2001,1,macro(stdexten,sip/2001)
    exten => 2001,2,hangup

In sip.conf I have

[2001]
type=friend
username=2001
subscribecontext=myhints
host=dynamic
mailbox=2001
callerid="ext" <2001>
incominglimit=1

[2002]
type=friend
username=2002
subscribecontext=myhints
host=dynamic
mailbox=2001
callerid="SNOM360" <2002>

I restart asterisk from scratch and then reboot the 360. The * console shows one entry when typing the command 'sip show
subscriptions' which looks 
correct. Inspection of the sip trace log on the 360's web page reveals that 
the registration  succeeds and that the subscription of the 2001 from the 360 
also gets a 200 OK reply. However when I dial into extension 2001 nothing 
happens to the led's on the 360. Inspection of the 'sip trace log' on the 
360's web page reveals that it does not receive any NOTIFY from asterisk.

I am at my wits end - anybody got any ideas ?

Paul HE
~
-- 
Paul Hewlett - CottonPickinMinds - www.cottonpickinminds.co.za
Tel: +27 21 852 8812      Cel: +27 84 420 9282      Fax: +27 86 672 0563
-- 
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users at lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list