[Asterisk-code-review] func_channel: Adds TECH_EXISTS function. (asterisk[master])

N A asteriskteam at digium.com
Tue Feb 22 10:38:28 CST 2022


Attention is currently required from: Joshua Colp.
N A has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/18063 )

Change subject: func_channel: Adds TECH_EXISTS function.
......................................................................


Patch Set 1:

(1 comment)

Patchset:

PS1: 
> Can you explain the actual use case for this? Why would a deployer not know what channel types they' […]
You're right for perhaps a single static system, but that's not true when you have dialplan code running on many different systems. For example, I recently migrated back from PJSIP to SIP (just for testing). And in the future, I will move back from SIP to PJSIP. This function means I don't need to redo every Dial in my dialplan every time a tech changes, and now my dialplan code is portable and I don't need to think about it. People can code robustly by checking if PJSIP is available and falling back to SIP, for instance.

In the context of writing portable dialplan intended to be used across systems and across time, something like this is a must-have.



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18063
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Idf110464ed69a757b3e0c9d0e8d95d4d24559b46
Gerrit-Change-Number: 18063
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-CC: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Tue, 22 Feb 2022 16:38:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220222/b39e2d0a/attachment-0001.html>


More information about the asterisk-code-review mailing list