<div dir="ltr">When calls are forwarded they have a diversion header, containing information about the forwarded route. why cant i get this information i keep getting 0 or NULL values my code is something like this to display the diversion header.<div dir="ltr">
</div>
<div><br></div><div><div> </div><div></div><div> $var(RDNIS)=$di;</div><div> $var(PRIV)=$dip;</div><div><br></div><div> if (method=="INVITE")</div><div> {</div><div> xlog("L_DBG","\n RDNIS = $var(RDNIS) \n");</div>
<div></div><div> xlog("L_DBG","\n PRIVACY = $var(PRIV) n");</div><div><br></div><div> if (lookup("location"))</div><div> {</div><div> t_relay();</div>
<div> exit;</div><div> };</div></div><div><br></div></div>