Hi Aman,
If you look at the
http://www.voip-info.org/wiki/view/Asterisk+variables page, it's
available in the ${CHANNEL} dialplan variable. I'm not sure if you're
using a Python module for interfacing with AGI, or if you're doing
that yourself, but in the most rudimentary sense it might look like
this:
---
#!/usr/bin/python
import sys
sys.stdout.write('GET VARIABLE CHANNEL\n')
sys.stdout.flush()
result = sys.stdin.readline()
---
On 8/3/06, Aman Wadhwa <[EMAIL PROTECTED]> wrote:
Hi,
Thanks, but may be you got my question wrong. I wanted to know how should I
get the channel number. I mean to ask from where should i get the channel
number into the variable.
Sorry for the confusion.
Thanks,
Aman
On 8/3/06, Ian Service <[EMAIL PROTECTED]> wrote:
>
> http://www.voip-info.org/wiki/view/get+variable
>
>
> - Ian
>
>
>
> On 8/3/06, Aman Wadhwa < [EMAIL PROTECTED]> wrote:
> >
> > Hi All,
> >
> > I have implemented an IVR system using Asterisk while writing AGI
scripts in Python. Though the system runs fine, I want to capture the
channel number everytime a user calls in and then put it into a text file
along with the other data. Can anyone help me on how to capture the channel
number????
> >
> > Thanks,
> >
> >
> > Aman Wadhwa
> >
> >
>
>
--
Aman Wadhwa
Graduate Assistant
Maryland English Institute
University of Maryland
Aman Wadhwa
MS in Telecommunications
Class of 2007
University of Maryland
--
| It ain't what you don't know that gets you into trouble. It's what
| you know for sure that just ain't so. -- Mark Twain
|
| The Toronto Asterisk Users Group
| Join the discussion group by visiting http://taug.ca