[asterisk-users] get SIP extension status without calling it

Vieri rentorbuy at yahoo.com
Sun Dec 2 11:56:48 CST 2007


I tried another popular user agent: X-Lite.

I dialed *78 which in */FreePBX turns DND on AND I
pushed the DND button on the softphone.

# asterisk -vvvr
CLI> database show dnd
/DND/4053                                         :
YES

Despite all this when I send an OPTIONS request I
always get a "200 ok" reply.

Is X-Lite also "broken" with respect to the SIP RFC?
Or am I doing things wrong?

# ./options -1 -a --method OPTIONS
sip:4053 at 10.215.147.240:6486
SIP/2.0 200 OK
Via: SIP/2.0/UDP
10.215.144.27:38102;branch=z9hG4bKZDm0j0KD5BSBQ
Contact: <sip:10.215.147.240:6486>
To: <sip:4053 at 10.215.147.240>;tag=681c6278
From: <sip:10.215.144.27>;tag=Z1QHmBt52Dp1Q
Call-ID: 6b9f7f35-1ba1-122b-d4b7-00c09f10e472
CSeq: 92190473 OPTIONS
Accept: application/sdp
Accept-Language: en
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 1011s stamp 41150
Content-Length: 0


CLI> sip show peer 4053
INF-VOIP*CLI>

  * Name       : 4053
  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      : 4053 at device
  VM Extension : asterisk
  LastMsgsSent : 0/0
  Call limit   : 0
  Dynamic      : Yes
  Callerid     : "device" <4053>
  Expire       : 3597
  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     : 10.215.147.240 Port 6486
  Defaddr->IP  : 0.0.0.0 Port 5060
  Def. Username: 4053
  SIP Options  : (none)
  Codecs       : 0x400 (ilbc)
  Codec Order  : (ilbc)
  Status       : OK (169 ms)
  Useragent    : X-Lite release 1011s stamp 41150
  Reg. Contact :
sip:4053 at 10.215.147.240:6486;rinstance=ff64e47c4f35bdef



     
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


      ____________________________________________________________________________________
Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  http://overview.mail.yahoo.com/



More information about the asterisk-users mailing list