[Asterisk-Users] Accessing SIP username from AGI script

David Shirley ds-lists at thinkative.com
Mon Jun 27 06:52:09 MST 2005


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/c15aebb4/attachment.htm


More information about the asterisk-users mailing list