[asterisk-bugs] [Asterisk 0014488]: [patch] SIPNotify dialplan application
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Feb 18 03:27:17 CST 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14488
======================================================================
Reported By: alecdavis
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 14488
Category: Channels/chan_sip/NewFeature
Reproducibility: always
Severity: feature
Priority: normal
Status: new
Asterisk Version: SVN
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!): 172702
Request Review:
======================================================================
Date Submitted: 2009-02-17 04:04 CST
Last Modified: 2009-02-18 03:27 CST
======================================================================
Summary: [patch] SIPNotify dialplan application
Description:
It's come up before, regarding having a dialplan application to do
SIPNotify, similar to the cli command 'sip notify'
Avoids the awful way it's currently done in dialplan
exten => 2345,n,System(/usr/sbin/asterisk -rx "sip notify
grandstream-idle-screen-refresh GXP0009")
Only supports one local peer as required for our purpose, which was to
remotely request a refresh of Idle Screen on a Grandstream GXP series phone
with latest firmware 1.1.6.46.
syntax is as simple as
exten => 2345,n,SIPNotify(grandstream-idle-screen-refresh,GXP0009)
code is copied from chan_sip.c:sip_cli_notify with appropriate mods.
======================================================================
----------------------------------------------------------------------
(0100297) alecdavis (reporter) - 2009-02-18 03:27
http://bugs.digium.com/view.php?id=14488#c100297
----------------------------------------------------------------------
Anybody able to help out, the DialPlan needs to know whether the SIP Notify
was accepted or not?
Then after that I can take appropriate dialplan action, right now the
SIPNotify is sent blind.
If the phone is active (not idle) it will return a 480 response,
Temporarily Unavailable.
example console output:
-- Executing [2345 at trusted:1] SIPNotify("DAHDI/33-1",
"grandstream-idle-screen-refresh,GXP0009") in new stack
-- Sent NOTIFY of type 'grandstream-idle-screen-refresh' to 'GXP0009'
-- Executing [2345 at trusted:2] Dial("DAHDI/33-1", "DAHDI/32,20") in new
stack
-- Called 32
-- DAHDI/32-1 is ringing
-- Got SIP response 480 "Temporarily Unavailable" back from
192.168.124.51
Issue History
Date Modified Username Field Change
======================================================================
2009-02-18 03:27 alecdavis Note Added: 0100297
======================================================================
More information about the asterisk-bugs
mailing list