[asterisk-dev] Asterisk CALLINGTON for SS7

Richard Mudgett rmudgett at digium.com
Thu May 15 12:42:29 CDT 2014


On Thu, May 15, 2014 at 11:56 AM, Alberto Rinaudo <alberto.rinaudo at gmail.com
> wrote:

> If I'm right CALLINGTON is populated from a variable
> "caller.id.number.plan" that is equals to "p->cid_ton"
>
> I was comparing sig_pri.c and sig_ss7.c using asterisk 11.9
>
>
> in sig_pri.c
>        279      caller.id.number.plan = p->cid_ton;
>      4210      pri->pvts[chanpos]->cid_ton = ast_connected.id.number.plan;
>      6263      pri->pvts[chanpos]->cid_ton = e->ring.callingplan; /* this
> is the callingplan (TON/NPI), e->ring.callingplan>>4 would       be the TON
> */
>
> this variable cid_ton is set equals to the number plan or the calling
> plan, depends on the flow.
>
>
> while in sig_ss7.c
>       192      caller.id.number.plan = p->cid_ton;
>     1071      p->cid_ton = 0;
>

You want to use e->iam.calling_nai to assign to p->cid_ton.  However, SS7
uses
different code values so you will have to convert to the ISDN equivalent
value that
gets put there.

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140515/97b18663/attachment.html>


More information about the asterisk-dev mailing list