[asterisk-dev] Anyone interested in having file/line number shown in dialplan show output?

Jonathan Rose jonathan.rose at motorolasolutions.com
Wed Dec 7 12:49:39 CST 2016


I've been working through a lot of complicated dialplan setups lately,
mostly written in AEL. Doing so has left me painfully aware of the fact
that it can sometimes be hard to trace a dialplan through its various
extensions. More so in pbx_ael of course where what you write isn't
necessarily matched in an easy to read way to the extensions you create,
but even in pbx_config it can get slightly tricky to follow when included
files are involved or there is heavy use of 'n' to assign priority.

So far I've written a patch against trunk which adds in the basic
functionality I'm describing and applies it to extensions created by
pbx_config. I'm not sure if I should bother following it through to
completion since the benefits in pbx_config are limited, I'm unsure of how
many people actually use AEL to write their dialplans, and I'm not entirely
sure if I'm sharp enough to figure out how to add it to AEL in a
non-cataclysmic manner anyway. But I figured I'd at least post here to
gauge people's interest.

Linked is a picture showing illustrating the difference in my experimental
patch. It would also be fairly trivial to add a similar file/line number
tag to verbose 3 "channel ran extension" messages with the patch I've
written.

http://imgur.com/LCh61fx

-- 

*Jonathan R. Rose*Senior Systems Engineer

Motorola Solutions

email: jonathan.rose at motorolasolutions.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20161207/6923b64e/attachment.html>


More information about the asterisk-dev mailing list