[Asterisk-Users] Accessing SIP username from AGI script

jurczak jurczak at digi-com.gr
Mon Jun 27 07:06:47 MST 2005


Hello,

 

Why don't you try using the the CALLERIDNUM or maybe the ACCOUNTCODE and
based on that to take your decision?

 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of David Shirley
Sent: Monday, June 27, 2005 4:52 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Accessing SIP username from AGI script

 

Hi,

 

I'm writing an AGI script to manage outgoing calls. We need to interrogate a
database to work out which line a particular user is allowed to use for
outgoing calls. However, I cannot find a way for my AGI script to access the
SIP username. Does anyone know if this is possible (even if it is just
passing a variable from extensions.conf to the script)?

 

Thanks in advance,

 

David Shirley

--

The problem with defending the purity of the English language is that
English is about as pure as a cribhouse whore. We don't just borrow words;
on occasion, English has pursued other languages down alleyways to beat them
unconscious and riffle their pockets for new vocabulary.

 -James Nicoll

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050627/879259c7/attachment.htm


More information about the asterisk-users mailing list