Re: [asterisk-users] PJSIP redirect_method=uri_core and header modifications

2018-08-06 Thread Daniel Tryba
On Fri, Aug 03, 2018 at 04:24:06PM +0200, Daniel Tryba wrote: > redirect_method=uri_pjsip works as expected with regard to the header > manipulation stuff. > > Also I can't remember why, in the past, I decided to not use uri_pjsip > other than having the redirected host in CDRs with uri_core and

Re: [asterisk-users] PJSIP redirect_method=uri_core and header modifications

2018-08-03 Thread Daniel Tryba
On Thu, Aug 02, 2018 at 05:29:23PM +0200, Daniel Tryba wrote: > With chan_sip there is the variable SIP_MAX_FORWARDS to set > Max-Forwards. This counter is persistant after a redirect. I can't find > the equivalent for PJSIP, so I went the way of header manipulation. Only > to find out that any

Re: [asterisk-users] PJSIP redirect_method=uri_core and header modifications

2018-08-02 Thread Daniel Tryba
On Thu, Aug 02, 2018 at 05:29:23PM +0200, Daniel Tryba wrote: > With chan_sip there is the variable SIP_MAX_FORWARDS to set > Max-Forwards. This counter is persistant after a redirect. I can't find > the equivalent for PJSIP, so I went the way of header manipulation. Only > to find out that any

[asterisk-users] PJSIP redirect_method=uri_core and header modifications

2018-08-02 Thread Daniel Tryba
With chan_sip there is the variable SIP_MAX_FORWARDS to set Max-Forwards. This counter is persistant after a redirect. I can't find the equivalent for PJSIP, so I went the way of header manipulation. Only to find out that any headers added to the outbound leg are lost after a redirect (with