<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>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)?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks in advance,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>David Shirley<BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Geneva" size="3" style="font: 11.0px Geneva">--</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Geneva" size="3" style="font: 11.0px Geneva">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.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; background-color: #eeeeee"><FONT face="Geneva" size="3" style="font: 11.0px Geneva"><SPAN class="Apple-converted-space"> </SPAN>—James Nicoll</FONT></P> </DIV><BR></DIV></BODY></HTML>