Re: [asterisk-users] Dial command: channel type detection

2016-02-03 Thread jg



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

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Dial command: channel type detection

2016-02-02 Thread Julien Sansonnens
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

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users