This is a very interesting topic and very relevant for advanced configuration of Asterisk. Yes we all know it is the wrong list! :-)
In all earlier versions of Asterisk including Beta 1.2 we got the following:
agi_channel: IAX2/[EMAIL PROTECTED]:4569-3
in the brand new Asterisk 1.2 we got the following:
agi_channel: IAX2/83.229.221.208:4569-2
We used to identify the device or username using channel. But
on IAX from 1.2 that is not working at all. I posted this on the user list and Kevin
P. Fleming replied.
It was changed without specific notice, because you could
not rely on
the IAX2 user name always being present in the channel name
anyway. The
other channel drivers also do not put the user name into the
channel
name, so now it's consistent.
The Solution:
We use accountcode
For each device/username we add the username as accountcode.
In extension.conf we can now retrieve the value using ${ACCOUNTCODE}
This is very simple and very reliable and has removed the need to parse the channel variable. This is even more important now when Kevin P. Fleming has confirmed that we can't rely on the channel information.
--
Are Casilla
http://astbill.com - Open Source Billing, Routing and Management software for Asterisk and VOIP
AstBill DEMO: http://demo.astbill.com
_______________________________________________ Asterisk-Biz mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-biz
