[Asterisk-Users] Accessing SIP username from AGI script
Moises Silva
moises.silva at gmail.com
Mon Jun 27 08:01:29 MST 2005
i guess you have to trust the agi_callerid and agi_channel var. With
agi_channel you know if the originating party is a SIP, then with the
caller id you know the sip user.
best regards.
On 6/27/05, David Shirley <ds-lists at thinkative.com> wrote:
> 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
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
More information about the asterisk-users
mailing list