Dial Command: Channel Type Detection

Home » Asterisk Users » Dial Command: Channel Type Detection
Asterisk Users 1 Comment

Hi,

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.

Thanks a lot, regards, Julien Sansonnens

One thought on - Dial Command: Channel Type Detection

  • 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