<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 8:43 AM, Benoit Panizzon <span dir="ltr"><<a href="mailto:benoit.panizzon@imp.ch" target="_blank">benoit.panizzon@imp.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello List<br>
<br>
Next question where google did not spit out an unsable answer.<br>
<br>
When redirecting a call with Transfer, I would like to correctly<br>
indicate the reason.<br>
<br>
I did try this:<br>
<br>
exten => XX,1,NoOp(Call to ${EXTEN} from ${CALLERID(all)})<br>
exten => XX,n,Dial(SIP/ZZ)<br>
exten => XX,n,set(REDIRECTING(reason)=<wbr>cfb)<br>
exten => XX,n,Transfer(SIP/YY)<br>
<br>
I did try with 'reason' 'orig-reason' I added cfb with and only quotes,<br>
I did try cfnr.<br>
<br>
But the 302 message generated this way allways contains reason=unknown<br>
in the diversion header.<br>
<br>
Any hint welcome.<br></blockquote><div><br></div><div>You need to set more redirecting information [1].</div><div><br></div><div>In sip.conf send_diversion=yes needs to be in effect.  You also need to setup</div><div>the from party id information (at least the from number) to indicate where you</div><div>are redirecting from.  You should also increment the redirecting count.<br></div><div><br></div><div>chan_pjsip has the same requirements.  pjsip.conf send_diversion=yes needs to</div><div>be in effect and you also need to setup the from party id information.<br></div><div><br></div><div>Richard</div><div><br></div></div><div class="gmail_quote">[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Manipulating+Party+ID+Information">https://wiki.asterisk.org/wiki/display/AST/Manipulating+Party+ID+Information</a><br></div></div></div>