<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 15, 2014 at 11:56 AM, Alberto Rinaudo <span dir="ltr"><<a href="mailto:alberto.rinaudo@gmail.com" target="_blank">alberto.rinaudo@gmail.com</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"><div dir="ltr"><div>If I'm right CALLINGTON is populated from a variable "caller.id.number.plan" that is equals to "p->cid_ton"<br>
<div><br>I was comparing sig_pri.c and sig_ss7.c using asterisk 11.9<br>

<br><br>in sig_pri.c<br>       279      caller.id.number.plan = p->cid_ton;<br>     4210      pri->pvts[chanpos]->cid_ton = ast_connected.id.number.plan;<br>     6263      pri->pvts[chanpos]->cid_ton = e->ring.callingplan; /* this is the callingplan (TON/NPI), e->ring.callingplan>>4 would       be the TON */<br>


<br></div><div>this variable cid_ton is set equals to the number plan or the calling plan, depends on the flow.<br></div><div><br><br></div><div>while in sig_ss7.c<br>      192      caller.id.number.plan = p->cid_ton;<br>

    1071      p->cid_ton = 0;<br></div></div></div></blockquote><div><br></div><div>You want to use e->iam.calling_nai to assign to p->cid_ton.  However, SS7 uses <br>different code values so you will have to convert to the ISDN equivalent value that <br>
gets put there.<br><br></div><div>Richard<br></div></div><br></div></div>