[asterisk-dev] Libpri: get information about IE events on a channel
Carlos Barros
asterisk-dev at barros.ws
Fri Dec 12 14:02:54 CST 2008
Hello list...
I always noticed that identifying/blocking collect calls in Asterisk is a
need that most companies have, and there's not a good solution for this (as
far as I know)...
Today I was searching once again about this subject and found something that
made me think..
I have an Asterisk server connected to a E1 ISDN, and I found a blog post
that shows that when u receive a collect call, you get an IE event that
tells libpri that the call
is a collect call:
*– Processing IE 74 (cs0, Reverse Charging Indication)
So, everytime a channel receives this IE, it's a collect call... so, is it
possible to, given a channel, extract IE informations in order to search for
this IE 74??
If so, I guess it's possible to build an asterisk app that will identify a
collect call, by doing something like this:
* Get currenct span number;
* Get current channel number;
* Get struct pri from pris[span]->dchans[channel];
* Search throught struct pri and try to find IE 74
* If found, we have a collect call...
I must admit that I have NO experience at all with libpri (and very very
small experience in asterisk internals), so I might be telling the biggest
stupid thing in the world, so if that's the case,
sorry... But if not, if what I say makes sense, anyone has any clue of how
this can be accomplished?? If it's not possible, I would make a feature
suggestion for next libpri releases, to
keep track of received IE (or maybe only this one), as I think LOT of people
are searching for a way to identify a collect call, in a dialplan level..
Thanks in advance
Carlos Barros*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20081212/7986e3d7/attachment.htm
More information about the asterisk-dev
mailing list