[Asterisk-Users] SIP call logging, called number not logged

Martin Pycko martinp at digium.com
Fri Apr 25 07:20:21 MST 2003


-x works only for ${EXTEN} and is deprecated.

Now you can use ${VARIABLE:x} to strip first x digits
and ${VARIABLE:a:b} to get a substring:
1) if a >=0 it's first b digits starting from a
2) if a < 0 it's first b digits starting from the end of the variable + a
(remember that a < 0 )

Martin

On Thu, 24 Apr 2003, Uriel Carrasquilla wrote:

> what is the ":" doing in ${EXTEN:1} ?
> I have just recently learned the -x (x a digit) to strip x-digits from the
> extension.
>
>
> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com]On Behalf Of Iain
> Stevenson
> Sent: Thursday, April 24, 2003 3:28 PM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] SIP call logging, called number not logged
>
>
>
>
>
>
> No - nothing is placed in the "dst" field of the database or in the
> corresponding field in Master.csv.
>
>   Iain
>
>
>
> --On Wednesday, April 23, 2003 3:41 pm -0500 Martin Pycko
> <martinp at digium.com> wrote:
>
> > So now you should see the called number in CDR's. Did you find it ?
> >
> > Martin
> >
> > On Wed, 23 Apr 2003, Iain Stevenson wrote:
> >
> >>
> >> I recently converted my extensions.conf to use the ${EXTEN} format - this
> >> line places the call to FWD:
> >>
> >> exten => _8X.,1,Dial,SIP/${EXTEN:1}@fwd.pulver.com
> >>
> >>   Iain
> >>
> >>
> >>
> >> --On Tuesday, April 22, 2003 3:24 pm -0500 Martin Pycko
> >> <martinp at digium.com> wrote:
> >>
> >> > Do you use BYEXTENSION ? or do you use ${EXTEN} ?
> >> >
> >> > Martin
> >> >
> >> > On Tue, 22 Apr 2003, Iain Stevenson wrote:
> >> >
> >> >>
> >> >> I've set up * as a gateway to Free World Dialup.  The called number
> >> >> appears not to be logged either in the Master.csv file or to MySQL -
> >> >> do I need to set an option?
> >> >>
> >> >>   Iain
> >> >> _______________________________________________
> >> >> Asterisk-Users mailing list
> >> >> Asterisk-Users at lists.digium.com
> >> >> http://lists.digium.com/mailman/listinfo/asterisk-users
> >> >>
> >> >
> >> > _______________________________________________
> >> > Asterisk-Users mailing list
> >> > Asterisk-Users at lists.digium.com
> >> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >> >
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Asterisk-Users mailing list
> >> Asterisk-Users at lists.digium.com
> >> http://lists.digium.com/mailman/listinfo/asterisk-users
> >>
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list