[Asterisk-biz] gotta be a better way
Are
london3 at gmail.com
Thu Nov 24 01:24:47 MST 2005
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/70104 at 83.229.221.208: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://astartelecom.com - Independent VOIP Telecoms Broker. Asterisk
Consultants
http://astbill.com - Open Source Billing, Routing and Management software
for Asterisk and VOIP
AstBill DEMO: http://demo.astbill.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-biz/attachments/20051124/b924befc/attachment.htm
More information about the asterisk-biz
mailing list