Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] Trouble getting peer variable (sip username) on 302 Moved Temporarily


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
jonas.kellens at telen...
Guest





PostPosted: Fri Sep 02, 2016 4:26 am    Post subject: [asterisk-users] Trouble getting peer variable (sip username Reply with quote

Hello

when setting a local forward (in this case to extension 23) on a SIP phone, I see the following on the Asterisk CLI :


[Aug 31 14:59:34]     -- Got SIP response 302 "Moved Temporarily" back from 11.22.33.44:40670
[Aug 31 14:59:34]     -- Now forwarding Local/myaccount184@CallFromQueue-000007f4;2 to 'Local/23@from-internal' (thanks to SIP/myaccount184-00003729)


Question : how can I read the variable which contains the value 'myaccount184' in the context from-internal ?


The following variables I've tried are empty :

ChannelPeerip=${CHANNEL(peerip)}
Channelrecvip=${CHANNEL(recvip)}
Channelfrom=${CHANNEL(from)}
Channeluri=${CHANNEL(uri)}
Channeluseragent=${CHANNEL(useragent)})


You can see this on the CLI output here :

[Aug 31 14:59:34]     -- Executing [23@from-internal:7] NoOp("Local/23@from-internal-000007f5;2", "ChannelPeerip= Channelrecvip= Channelfrom=") in new stack
[Aug 31 14:59:34]     -- Executing [23@from-internal:8] NoOp("Local/23@from-internal-000007f5;2", "Channeluri= Channeluseragent=") in new stack





Anyone knows the correct variable to read ?



Kind regards

Jonas.
Back to top
admin at tootai.net
Guest





PostPosted: Fri Sep 02, 2016 4:51 am    Post subject: [asterisk-users] Trouble getting peer variable (sip username Reply with quote

Le 02/09/2016 à 11:26, Jonas Kellens a écrit :
Quote:
Hello

when setting a local forward (in this case to extension 23) on a SIP
phone, I see the following on the Asterisk CLI :


[Aug 31 14:59:34] -- Got SIP response 302 "Moved Temporarily" back
from 11.22.33.44:40670
[Aug 31 14:59:34] -- Now forwarding
Local/myaccount184@CallFromQueue-000007f4;2 to 'Local/23@from-internal'
(thanks to SIP/myaccount184-00003729)


Question : how can I read the variable which contains the value
'myaccount184' in the context from-internal ?

From SIP_HEADER(TO) ?

[...]

--
Daniel

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

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