[asterisk-users] Dial command: channel type detection

jg webaccounts173 at jgoettgens.de
Wed Feb 3 03:01:01 CST 2016


> Some of my users connect to my asterisk box using SIP, other using iax
> (in users.conf, I set "hasiax=yes" for those users).
>
> How do I detect which protocol some user is using ? I cannot find any
> variable which contains that information.
>
> Reason is: I need this information for the Dial() command to work with
> all my users, as the protocol is needed when using this command.
>
Why can't you evaluate the CHANNEL variable with something like 
Set(TECHNOLOGY=${CUT(CHANNEL,/,1)})? One could also initially use a special context for IAX 
channels and set a variable. It depends on what you want to do.

jg



More information about the asterisk-users mailing list