[asterisk-users] Knowing incoming call technology and channel

2008-09-29 Thread Olivier
Hi,

I've read www.voip-info.org but couldn't find the answer I'm after.

In diaplan, how can you know the technology and channel of an incoming call
?
I was thinking of something like :

[incoming]
exten = _,1,Set(CALLERID(num)=00${CALLERIDNUM})
exten = _,2,NoOp(This call comes from ${CHANNELTYPE})
exten = _,3,NoOp(This call comes from ${CHANNELNO})
exten = _,4,NoOp(Said differently this call comes from
${CHANNELTYPE}/${CHANNELNO})


My ultimate goal is to have this working with Zaptel channels (from a
bristuffed Asterisk).

Regards
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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

Re: [asterisk-users] Knowing incoming call technology and channel

2008-09-29 Thread Alex Balashov
Try this:

exten = _,1,Set(THISTECH=${CUT(CHANNEL,/,1)})
exten = _,n,NoOp(Technology is ${THISTECH})
exten = _,n,Set(THISCHANNEL=${CUT(CHANNEL,/,2)})
exten = _,n,NoOp(Channel is ${THISCHANNEL})

Olivier wrote:

 Hi,
 
 I've read www.voip-info.org http://www.voip-info.org but couldn't find 
 the answer I'm after.
 
 In diaplan, how can you know the technology and channel of an incoming 
 call ?
 I was thinking of something like :
 
 [incoming]
 exten = _,1,Set(CALLERID(num)=00${CALLERIDNUM})
 exten = _,2,NoOp(This call comes from ${CHANNELTYPE})
 exten = _,3,NoOp(This call comes from ${CHANNELNO})
 exten = _,4,NoOp(Said differently this call comes from 
 ${CHANNELTYPE}/${CHANNELNO})
 
 
 My ultimate goal is to have this working with Zaptel channels (from a 
 bristuffed Asterisk).
 
 Regards
 
 
 
 
 
 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
 AstriCon 2008 - September 22 - 25 Phoenix, Arizona
 Register Now: http://www.astricon.net
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


-- 
Alex Balashov
Evariste Systems
Web: http://www.evaristesys.com/
Tel: (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Knowing incoming call technology and channel [SOLVED]

2008-09-29 Thread Olivier
2008/9/29 Alex Balashov [EMAIL PROTECTED]

 Try this:

 exten = _,1,Set(THISTECH=${CUT(CHANNEL,/,1)})
 exten = _,n,NoOp(Technology is ${THISTECH})
 exten = _,n,Set(THISCHANNEL=${CUT(CHANNEL,/,2)})
 exten = _,n,NoOp(Channel is ${THISCHANNEL})


Hi,

I don't have any spare zaptel enabled system I could try this on, but I was
not aware of this CHANNEL variable.
Now, I can see it here http://www.voip-info.org/wiki/view/Asterisk+variables
Maybe, I will add a line in www.voip-info.org to keep others (me?) from
searching again.

Thanks for helping




 Olivier wrote:

  Hi,
 
  I've read www.voip-info.org http://www.voip-info.org but couldn't find
  the answer I'm after.
 
  In diaplan, how can you know the technology and channel of an incoming
  call ?
  I was thinking of something like :
 
  [incoming]
  exten = _,1,Set(CALLERID(num)=00${CALLERIDNUM})
  exten = _,2,NoOp(This call comes from ${CHANNELTYPE})
  exten = _,3,NoOp(This call comes from ${CHANNELNO})
  exten = _,4,NoOp(Said differently this call comes from
  ${CHANNELTYPE}/${CHANNELNO})
 
 
  My ultimate goal is to have this working with Zaptel channels (from a
  bristuffed Asterisk).
 
  Regards
 
 
 
  
 
  ___
  -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
  AstriCon 2008 - September 22 - 25 Phoenix, Arizona
  Register Now: http://www.astricon.net
 
  asterisk-users mailing list
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users


 --
 Alex Balashov
 Evariste Systems
 Web: http://www.evaristesys.com/
 Tel: (+1) (678) 954-0670
 Direct : (+1) (678) 954-0671
 Mobile : (+1) (706) 338-8599

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 AstriCon 2008 - September 22 - 25 Phoenix, Arizona
 Register Now: http://www.astricon.net

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

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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

Re: [asterisk-users] Knowing incoming call technology and channel

2008-09-29 Thread Philipp Kempgen
Olivier schrieb:

 In diaplan, how can you know the technology and channel of an incoming call
 ?

${CHANNEL(channeltype)}


   Philipp Kempgen

-- 
http://www.das-asterisk-buch.de  -  http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied  -  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Knowing incoming call technology and channel [SOLVED]

2008-09-29 Thread Eric ManxPower Wieling


Olivier wrote:

 I don't have any spare zaptel enabled system I could try this on, but I 
 was not aware of this CHANNEL variable.
 Now, I can see it here http://www.voip-info.org/wiki/view/Asterisk+variables
 Maybe, I will add a line in www.voip-info.org http://www.voip-info.org 
 to keep others (me?) from searching again.

You should have looked in /path/to/arc/asterisk/doc/channelvariables.txt 
  There's lots of cool information there, and all of it is up to date 
for your version of Asterisk, unlike voip-info.org.

I often wonder why nobody seems to read the docs that are included with 
Asterisk.

-- 
Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, 
T-1, PRI, Frame Relay, Linux, and network design.  Based near 
Birmingham, AL.  Now accepting clients worldwide. 
http://www.fnords.org/skillslist.html

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Knowing incoming call technology and channel [SOLVED]

2008-09-29 Thread SIP
Eric ManxPower Wieling wrote:
 Olivier wrote:

   
 I don't have any spare zaptel enabled system I could try this on, but I 
 was not aware of this CHANNEL variable.
 Now, I can see it here http://www.voip-info.org/wiki/view/Asterisk+variables
 Maybe, I will add a line in www.voip-info.org http://www.voip-info.org 
 to keep others (me?) from searching again.
 

 You should have looked in /path/to/arc/asterisk/doc/channelvariables.txt 
   There's lots of cool information there, and all of it is up to date 
 for your version of Asterisk, unlike voip-info.org.

 I often wonder why nobody seems to read the docs that are included with 
 Asterisk.

   
Web and/or context-searchable documentation will ALWAYS win out over a
somewhat loose collection of text files.

That's basic UI psychology 101.

N.

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Knowing incoming call technology and channel [SOLVED]

2008-09-29 Thread Josiah Bryan
So, should we (I can do it, if desired) write a script that polls 
subversion docs directory and imports it into voip-info.org when the the 
docs are changed?

I'd be glad to write and host such a script if the community desires the 
feature.

-josiah

SIP wrote:
 Eric ManxPower Wieling wrote:
 Olivier wrote:

   
 I don't have any spare zaptel enabled system I could try this on, but I 
 was not aware of this CHANNEL variable.
 Now, I can see it here http://www.voip-info.org/wiki/view/Asterisk+variables
 Maybe, I will add a line in www.voip-info.org http://www.voip-info.org 
 to keep others (me?) from searching again.
 
 You should have looked in /path/to/arc/asterisk/doc/channelvariables.txt 
   There's lots of cool information there, and all of it is up to date 
 for your version of Asterisk, unlike voip-info.org.

 I often wonder why nobody seems to read the docs that are included with 
 Asterisk.

   
 Web and/or context-searchable documentation will ALWAYS win out over a
 somewhat loose collection of text files.
 
 That's basic UI psychology 101.
 
 N.
 
 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
 AstriCon 2008 - September 22 - 25 Phoenix, Arizona
 Register Now: http://www.astricon.net
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 

-- 
Josiah Bryan
IT Manager
Productive Concepts, Inc.
[EMAIL PROTECTED]
(765) 964-6009, ext. 224


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Knowing incoming call technology and channel [SOLVED]

2008-09-29 Thread Mark Hamilton
I don't see why not, Voip-info is very outdated in most respects. 
Most of it with bad examples, dating to Asterisk 1.x era.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Josiah Bryan
Sent: September 29, 2008 11:09 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Knowing incoming call technology and channel
[SOLVED]

So, should we (I can do it, if desired) write a script that polls 
subversion docs directory and imports it into voip-info.org when the the 
docs are changed?

I'd be glad to write and host such a script if the community desires the 
feature.

-josiah

SIP wrote:
 Eric ManxPower Wieling wrote:
 Olivier wrote:

   
 I don't have any spare zaptel enabled system I could try this on, but I 
 was not aware of this CHANNEL variable.
 Now, I can see it here
http://www.voip-info.org/wiki/view/Asterisk+variables
 Maybe, I will add a line in www.voip-info.org http://www.voip-info.org

 to keep others (me?) from searching again.
 
 You should have looked in /path/to/arc/asterisk/doc/channelvariables.txt 
   There's lots of cool information there, and all of it is up to date 
 for your version of Asterisk, unlike voip-info.org.

 I often wonder why nobody seems to read the docs that are included with 
 Asterisk.

   
 Web and/or context-searchable documentation will ALWAYS win out over a
 somewhat loose collection of text files.
 
 That's basic UI psychology 101.
 
 N.
 
 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
 AstriCon 2008 - September 22 - 25 Phoenix, Arizona
 Register Now: http://www.astricon.net
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 

-- 
Josiah Bryan
IT Manager
Productive Concepts, Inc.
[EMAIL PROTECTED]
(765) 964-6009, ext. 224


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] Knowing incoming call technology and channel [SOLVED]

2008-09-29 Thread Eric ManxPower Wieling
You would want three pages, 1.2 docs, 1.4 docs, and 1.6 docs.

Mark Hamilton wrote:
 I don't see why not, Voip-info is very outdated in most respects. 
 Most of it with bad examples, dating to Asterisk 1.x era.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Josiah Bryan
 Sent: September 29, 2008 11:09 AM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: Re: [asterisk-users] Knowing incoming call technology and channel
 [SOLVED]
 
 So, should we (I can do it, if desired) write a script that polls 
 subversion docs directory and imports it into voip-info.org when the the 
 docs are changed?
 
 I'd be glad to write and host such a script if the community desires the 
 feature.
 
 -josiah
 
 SIP wrote:
 Eric ManxPower Wieling wrote:
 Olivier wrote:

   
 I don't have any spare zaptel enabled system I could try this on, but I 
 was not aware of this CHANNEL variable.
 Now, I can see it here
 http://www.voip-info.org/wiki/view/Asterisk+variables
 Maybe, I will add a line in www.voip-info.org http://www.voip-info.org
 
 to keep others (me?) from searching again.
 
 You should have looked in /path/to/arc/asterisk/doc/channelvariables.txt 
   There's lots of cool information there, and all of it is up to date 
 for your version of Asterisk, unlike voip-info.org.

 I often wonder why nobody seems to read the docs that are included with 
 Asterisk.

   
 Web and/or context-searchable documentation will ALWAYS win out over a
 somewhat loose collection of text files.

 That's basic UI psychology 101.

 N.

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 AstriCon 2008 - September 22 - 25 Phoenix, Arizona
 Register Now: http://www.astricon.net

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

 

-- 
Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, 
T-1, PRI, Frame Relay, Linux, and network design.  Based near 
Birmingham, AL.  Now accepting clients worldwide. 
http://www.fnords.org/skillslist.html

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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