[asterisk-users] get SIP extension status without calling it
Vieri
rentorbuy at yahoo.com
Sun Dec 2 11:28:13 CST 2007
I also tried:
# ./options -1 -a sip:4064 at 192.168.250.1:5072
but still received a
SIP/2.0 200 OK
Via: SIP/2.0/UDP
10.215.144.27:38102;branch=z9hG4bKFB4rQrr5aXp9H
From: <sip:10.215.144.27>;tag=FF1tQy74X81rm
To: <sip:4064 at 192.168.250.1>;tag=1639856599
Call-ID: 83259dd2-1b9e-122b-10a3-00c09f10e472
CSeq: 92189848 OPTIONS
Supported: replaces, path, timer
User-Agent: Grandstream GXW-4008 V1.2A 1.0.0.67
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE,
NOTIFY, INFO, REFER, UPDATE
Content-Length: 0
Is Grandstream GXW-4008 not 100% SIP compliant, too?
--- Vieri <rentorbuy at yahoo.com> wrote:
>
> --- Tilghman Lesher
> <tilghman at mail.jeffandtilghman.com> wrote:
>
> > OPTIONS is the right type of request
>
> Suppose that the user agent is not a softphone but a
> gateway such as the Grandstream GXW-4008 ATA.
> One of the FXS-port-connected phones of the gateway
> has DND turned on.
> IF I send an OPTIONS request then the UA always
> answers with a 200 ok even if the extension is
> actually busy.
>
> In this particular case, how does one get the status
> of an extension "behind a user agent/gateway"? (am I
> writing the sip url correctly in the sofia-sip
> options
> utility below?)
>
> ("database show dnd" does not yield anything)
>
> # ./options -1 -a sip:4064 at 192.168.250.1
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP
> 10.215.144.27:38102;branch=z9hG4bKF8F0cQa7N9cva
> From: <sip:10.215.144.27>;tag=Fcj2gFcX9ctpg
> To: <sip:4064 at 192.168.250.1>;tag=1260250638
> Call-ID: 3cb23664-1b9c-122b-6393-00c09f10e472
> CSeq: 92189360 OPTIONS
> Supported: replaces, path, timer
> User-Agent: Grandstream GXW-4008 V1.2A 1.0.0.67
> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE,
> NOTIFY, INFO, REFER, UPDATE
> Content-Length: 0
>
> --------
> On the asterisk cli:
>
> CLI> sip show peers
> Name/username Host Dyn Nat
> ACL
> Port Status
> 4444/4444 192.168.250.1 D N
>
> 5060 OK (8 ms)
> 4173/4173 (Unspecified) D N
>
> 0 UNKNOWN
> 4172/4172 (Unspecified) D N
>
> 0 Unmonitored
> 4171/4171 (Unspecified) D N
>
> 0 Unmonitored
> 4170/4170 (Unspecified) D N
>
> 0 Unmonitored
> 4065/4065 192.168.250.1 D N
>
> 6074 OK (8 ms)
> 4064/4064 192.168.250.1 D N
>
> 5072 OK (8 ms)
> 4063/4063 192.168.250.1 D N
>
> 5068 OK (8 ms)
> 4061/4061 192.168.250.1 D N
>
> 5070 OK (8 ms)
> 4059/4059 (Unspecified) D N
>
> 0 Unmonitored
> 4058/4058 (Unspecified) D N
>
> 0 UNKNOWN
> 4057/4057 (Unspecified) D N
>
> 0 UNKNOWN
> 4056/4056 (Unspecified) D N
>
> 0 UNKNOWN
> 4055/4055 (Unspecified) D N
>
> 0 Unmonitored
> 4054/4054 (Unspecified) D N
>
> 0 UNKNOWN
> 4053/4053 10.215.147.240 D N
>
> 5060 OK (139 ms)
> 4052/4052 (Unspecified) D N
>
> 0 Unmonitored
> 4022/4022 192.168.250.1 D N
>
> 5062 OK (8 ms)
> 4013/4013 (Unspecified) D N
>
> 0 UNKNOWN
> 4012/4012 (Unspecified) D N
>
> 0 UNKNOWN
> 4004/4004 (Unspecified) D N
>
> 0 UNKNOWN
> 4003/4003 10.215.145.170 D N
>
> 5060 OK (1 ms)
> 4002/4002 (Unspecified) D N
>
> 0 UNKNOWN
> 23 sip peers [14 online , 9 offline]
>
> CLI> sip show peer 4064
> CLI>
>
> * Name : 4064
> Secret : <Set>
> MD5Secret : <Not set>
> Context : from-internal
> Subscr.Cont. : <Not set>
> Language : es
> AMA flags : Unknown
> CallingPres : Presentation Allowed, Not Screened
> Callgroup : 2
> Pickupgroup : 2
> Mailbox : 4064 at device
> VM Extension : asterisk
> LastMsgsSent : 0/0
> Call limit : 0
> Dynamic : Yes
> Callerid : "device" <4064>
> Expire : 22569
> Insecure : no
> Nat : Always
> ACL : No
> CanReinvite : No
> PromiscRedir : No
> User=Phone : No
> Trust RPID : No
> Send RPID : No
> DTMFmode : rfc2833
> LastMsg : 0
> ToHost :
> Addr->IP : 192.168.250.1 Port 5072
> Defaddr->IP : 0.0.0.0 Port 5060
> Def. Username: 4064
> SIP Options : (none)
> Codecs : 0x400 (ilbc)
> Codec Order : (ilbc)
> Status : OK (8 ms)
> Useragent : Grandstream GXW-4008 V1.2A
> 1.0.0.67
> Reg. Contact : sip:4064 at 192.168.250.1:5072
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
More information about the asterisk-users
mailing list