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

Administrator TOOTAI admin at tootai.net
Fri Sep 2 04:51:08 CDT 2016


Le 02/09/2016 à 11:26, Jonas Kellens a écrit :
> 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 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 ?

 From SIP_HEADER(TO) ?

[...]

-- 
Daniel



More information about the asterisk-users mailing list