<div dir="ltr"><div class="gmail_default" style="color:#660000">After a quick perusal of the chan_sip.c code (from svn trunk), I'm not seeing where the address (p->sa) logged in that message is passed to the redirecting functions handling the 302, thus it is unlikely there is a way to obtain it other than reading the log.</div><div class="gmail_default" style="color:#660000"><br></div><div class="gmail_default" style="color:#660000">It wouldn't be hard to set a channel variable with that value however, should you want to patch the code, possibly even submit that.</div><div class="gmail_default" style="color:#660000"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 7:05 AM, Ishfaq Malik <span dir="ltr"><<a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On 24 October 2014 16:51, Ishfaq Malik <span dir="ltr"><<a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>I'm using asterisk 1.8 but I'm sure this applies to other versions.</div><div><br></div><div>If someone puts a call divert on a handset such as a Snom phone I get this type of SIP message on receipt of an inbound call:</div><div><br></div><div>Got SIP response 302 "Moved Temporarily" back from xxx.xxx.xxx.xxx:xxxxx</div><div><br></div><div>Which then triggers a local channel to make the call.</div><div><br></div><div>Is there any way I can access that IP address inside my dialplan? I've done a ChanDump and there's no sign of it.</div><div><br></div><div>Regards</div><div><br></div><div>Ish<br clear="all"><div><br></div><div dir="ltr"><pre></pre></div></div></div></blockquote><div><br></div></span><div>Bumping this as I originally sent it late on Friday. If anyone has any idea, please let me know. </div></div><br><br clear="all"><div>Thanks in Advance</div><span class=""><div><br></div><div>Ish</div>-- <br><div dir="ltr"><pre>Ishfaq Malik 
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: <a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>
w: <a href="http://www.pack-net.co.uk" target="_blank">http://www.pack-net.co.uk</a>

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street 
Manchester, M1 2JW
COMPANY REG NO. 04920552
</pre></div>
</span></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><img alt="Digium logo" src="https://my.digium.com/images/graphics/digium_RGB_signature.gif" width="288" height="50" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:12px"><div>Scott Griepentrog<br>Digium, Inc · Software Developer<br>445 Jan Davis Drive NW · Huntsville, AL 35806 · US<br>direct/fax: +1 256 428 6239 · mobile: +1 256 580 6090<br>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> · <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br></div></div>
</div>