[Asterisk-Users] Account Code in all cases?

C F shmaltz at gmail.com
Thu May 5 16:35:36 MST 2005


Before the issuing the dial command issue the setvar command like this:
exten => 1234,1,SetVar(CDR(accountcode)=value)
exten => 1234,2,Dial(SIP/whatever)
this should take care of it.

On 5/5/05, Matthew Boehm <mboehm at cytelcom.com> wrote:
> Yes, but how do I do it automatically like when a SIP call is made?
>
> Plus, on some DIDs I don't know which phone will answer until after it has
> answered.
>
> -Matthew
>
> C F wrote:
> > do:
> > SetVar(CDR(accountcode)=value)
> >
> > On 5/5/05, Matthew Boehm <mboehm at cytelcom.com> wrote:
> >> Scenario #1:
> >>   SIP UA 1 -> Asterisk -> PSTN
> >>   CDR shows account code of SIP UA 1; as expected, works great.
> >>
> >> Scenario #2:
> >>   PSTN -> Asterisk -> SIP UA 1
> >>   CDR shows no account code.
> >>
> >> How can I get the account code of SIP UA 1 to appear in the CDR of
> >> Scenario #2?
> >>
> >> Unless someone else has a better method of finding out who called SIP
> >> UA 1.
> >>
> >> SIPUA1 can be reached by internal office 4 digit dialing and by
> >> several outside lines (PSTN).
> >>
> >> Any ideas?
> >>
> >> -Matthew
> >>
> >> --
> >> ------------------------------------------------------------------------
> >> Matthew Boehm, IT Director                    Cypress
> >> Telecommunications mboehm at cytelcom.com                   3838 N. Sam
> >> Houston Parkway E #400 T: 832-200-8640 x3044
> >> Houston, TX 77032
> >>
> >> My girlfriend was recently diagnosed with multiple personality
> >>  disorder; When she called yesterday, my CallerID box exploded.
> >> ------------------------------------------------------------------------
> >> _______________________________________________
> >> Asterisk-Users mailing list
> >> Asterisk-Users at lists.digium.com
> >> http://lists.digium.com/mailman/listinfo/asterisk-users
> >> To UNSUBSCRIBE or update options visit:
> >>    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
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>



More information about the asterisk-users mailing list