[asterisk-dev] [Code Review]: Add support for ${} parsing in sip_notify.conf

gareth reviewboard at asterisk.org
Thu Oct 18 23:35:27 CDT 2012



> On Sept. 14, 2012, 11:36 a.m., opticron wrote:
> > /trunk/CHANGES, line 376
> > <https://reviewboard.asterisk.org/r/2074/diff/2/?file=31176#file31176line376>
> >
> >     Red blob.

Removed.


> On Sept. 14, 2012, 11:36 a.m., opticron wrote:
> > /trunk/channels/chan_sip.c, line 20822
> > <https://reviewboard.asterisk.org/r/2074/diff/2/?file=31178#file31178line20822>
> >
> >     Red blob.

Removed also.


- gareth


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2074/#review7065
-----------------------------------------------------------


On Oct. 18, 2012, 11:33 p.m., gareth wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2074/
> -----------------------------------------------------------
> 
> (Updated Oct. 18, 2012, 11:33 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> This is the second part split out from the much larger patch at https://reviewboard.asterisk.org/r/1976/ - this part contains the code required to get the phone to restart or reset from a SIP NOTIFY requuest:
> 
> - Add ${} parsing for sip_notify.conf, PEERNAME variable contains the name of the peer being sent the notification.
> 
> - Allows the user to specify their own Subscription-State header as the Cisco phones require 'active' instead of 'terminated'.
> 
> There are probably other uses for this especially when paired with using Content => ${SHELL(/path/to/script "${PEERNAME}")} etc. 
> 
> Note: Using SHELL() and CURL() emit errors here because they try to start autoservice on the channel. Not sure what the best fix for that is, maybe checking for dummy channels ast_autoservice_{start|stop} and treating it as a no-op.
> 
> Addendum: I submitted a patch to fix the above problem: ASTERISK-20283.
> 
> 
> Diffs
> -----
> 
>   /trunk/CHANGES 375136 
>   /trunk/UPGRADE-11.txt 375136 
>   /trunk/channels/chan_sip.c 375136 
>   /trunk/configs/sip_notify.conf.sample 375136 
> 
> Diff: https://reviewboard.asterisk.org/r/2074/diff
> 
> 
> Testing
> -------
> 
> Sent a few notifications to a peer containing ${} contructs.
> 
> 
> Thanks,
> 
> gareth
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20121019/02fed7a7/attachment.htm>


More information about the asterisk-dev mailing list