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

Max Grobecker max.grobecker at ml.grobecker.info
Sat Sep 3 09:35:17 CDT 2016


Hi Jonas,


Am 02.09.2016 um 11:26 schrieb Jonas Kellens:
> [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 at CallFromQueue-000007f4;2 to 'Local/23 at from-internal' (thanks to SIP/myaccount184-00003729)
> Question : how can I read the variable which contains the value 'myaccount184' in the context from-internal ?

You can get some information out of the REDIRECTING function [1].
For example, your redirecting source (the called device that caused call diversion) is normally stored in REDIRECTING(from-num).

[1] https://wiki.asterisk.org/wiki/display/AST/Function_REDIRECTING


Greetings
Max

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160903/ccd9b63a/attachment.pgp>


More information about the asterisk-users mailing list