On Fri, 4 May 2012, Jakob Hirsch wrote:
is it possible to get the SIP IP address of the remote (calling) party,
in the dialplan or (preferrably) in an AGI script?
(This sounded like a rather basic question to me, but I could not find
an answer...)
You're right. It is a rather basic question :)
From the Asterisk console, try:
core show function SIP<TAB>
I use:
set(PEERIP=${SIPCHANINFO(peerip)})
in one of my dialplans. For AGI, whatever function in your library that
executes 'GET FULL VARIABLE' should do the trick.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users