[asterisk-users] Print CALLERID in CLI during "pri debug "
Arpit Mehta
am2866 at columbia.edu
Fri Dec 7 15:42:24 CST 2007
Ok so the call reference is the 'cr' field (q931.c) and how do I
retrieve the caller id from this call reference ?
On Dec 7, 2007 4:29 AM, Richard Revels <rrevels at bandwidth.com> wrote:
>
> When the call sets up the 'call reference' is assigned. It will be unique
> for the duration of the call and other messages, like Connect, will
> reference it. At the same time, the setup will have indicated the caller ID
> info.
>
>
> Sent from my iPhone
>
>
> On Dec 6, 2007, at 10:28 PM, "Arpit Mehta" <am2866 at columbia.edu> wrote:
>
>
>
>
>
> Or in other words is there a way to map which message is from which CallerID
> ?
>
> On Dec 6, 2007 6:40 PM, Arpit Mehta <am2866 at columbia.edu> wrote:
> > Hi all,
> >
> > I was wondering if it is possible to print the callerid value in the
> > CLI when doing 'pri debug span 1'
> > For example
> >
> > > Call Ref: len= 2 (reference 2707/0xA93) (Terminator)
> > > Message type: CONNECT (7)
> > > [18 03 a9 83 97]
> > > Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive
> Dchan: 0
> > > ChanSel: Reserved
> > > Ext: 1 Coding: 0 Number Specified Channel
> Type: 3
> > > Ext: 1 Channel: 23 ]
> > > [1e 02 81 82]
> > > Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0)
> 0: 0 Location: Private network serving the local user (1)
> > >
> >
> >
> > I would like to print
> >
> > '1234567890 Message type: CONNECT (7)
> > .......
> > .......
> > '
> >
> > where 1234567890 is the callerid
> >
> > Thanks
> >
> > Regards
> >
> > --
> > Arpit Mehta
> > Graduate Student
> > Department of Computer Science
> > Columbia University
> >
> > Tel: 1-646-387-5998
> >
>
>
>
> --
> Arpit Mehta
> Graduate Student
> Department of Computer Science
> Columbia University
>
> Tel: 1-646-387-5998
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
Arpit Mehta
Graduate Student
Department of Computer Science
Columbia University
Tel: 1-646-387-5998
More information about the asterisk-users
mailing list