Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Call forwarding from Phones and getting the referrer IP


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ish at pack-net.co.uk
Guest





PostPosted: Fri Oct 24, 2014 10:52 am    Post subject: [asterisk-users] Call forwarding from Phones and getting the Reply with quote

Hi

I'm using asterisk 1.8 but I'm sure this applies to other versions.


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:


Got SIP response 302 "Moved Temporarily" back from xxx.xxx.xxx.xxx:xxxxx


Which then triggers a local channel to make the call.


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.


Regards


Ish

--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
Back to top
ish at pack-net.co.uk
Guest





PostPosted: Tue Oct 28, 2014 7:06 am    Post subject: [asterisk-users] Call forwarding from Phones and getting the Reply with quote

On 24 October 2014 16:51, Ishfaq Malik <ish@pack-net.co.uk (ish@pack-net.co.uk)> wrote:
Quote:
Hi

I'm using asterisk 1.8 but I'm sure this applies to other versions.


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:


Got SIP response 302 "Moved Temporarily" back from xxx.xxx.xxx.xxx:xxxxx


Which then triggers a local channel to make the call.


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.


Regards


Ish






Bumping this as I originally sent it late on Friday. If anyone has any idea, please let me know. 


Thanks in Advance


Ish
--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
Back to top
sgriepentrog at digium...
Guest





PostPosted: Tue Oct 28, 2014 10:42 am    Post subject: [asterisk-users] Call forwarding from Phones and getting the Reply with quote

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.


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.




On Tue, Oct 28, 2014 at 7:05 AM, Ishfaq Malik <ish@pack-net.co.uk (ish@pack-net.co.uk)> wrote:
Quote:
On 24 October 2014 16:51, Ishfaq Malik <ish@pack-net.co.uk (ish@pack-net.co.uk)> wrote:
Quote:
Hi

I'm using asterisk 1.8 but I'm sure this applies to other versions.


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:


Got SIP response 302 "Moved Temporarily" back from xxx.xxx.xxx.xxx:xxxxx


Which then triggers a local channel to make the call.


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.


Regards


Ish






Bumping this as I originally sent it late on Friday. If anyone has any idea, please let me know. 


Thanks in Advance


Ish
--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552




--
_____________________________________________________________________
-- 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




--
Scott Griepentrog
Digium, Inc · Software Developer
445 Jan Davis Drive NW · Huntsville, AL 35806 · US
direct/fax: +1 256 428 6239 · mobile: +1 256 580 6090
Check us out at: http://digium.com · http://asterisk.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services