Hi, pls try: exten => s,n,Set(pjsiprip=${CHANNEL(pjsip,remote_addr)}) https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+ManagerAction_Getvar
On Thu, 4 Nov 2021 at 15:50, Kingsley Tart <kings...@dns99.co.uk> wrote: > On Thu, 2021-11-04 at 10:10 -0300, Joshua C. Colp wrote: > > > Do you know whether it is possible to get the remote_addr from the > > > AMI? > > > > I don't know off the top of my head. AMI actions and events are > > documented on the wiki[1], so you could look there and see. > > > > [1] > https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+Command+Reference > > Hi, > > I've managed to establish that there are no events that convey this > information, getting a list of channels doesn't include that in the > data and I didn't manage to find any of the PJSIP AMI commands that > returned it, so I think it isn't possible. > > The only way I can think is to externally have tcpdump running > capturing all SIP traffic and watch this and match up with the Call-Id. > It seems messy but I can't think of any other way (aside from doing an > ngrep for local originated INVITEs but that amounts to much the same > thing). > > -- > Cheers, > Kingsley. > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- Pozdrawiam, Łukasz Grzywański Voice Architect Mok Yok IT Sp. z o.o. ul. Rzeźnicza 32/33, 50-130 Wrocław, Polska tel. +48 717227200, fax +48 717227299 mob.: +48 517255333, e-mail: lukasz.grzywan...@mokyokit.com
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users