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@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. ------------------------------------------------------------------------
Could you use ForkCDR. Regards.>From: "Matthew Boehm" <mboehm@cytelcom.com> >Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion ><asterisk-users@lists.digium.com> >To: <asterisk-users@lists.digium.com> >Subject: [Asterisk-Users] Account Code in all cases? >Date: Thu, 5 May 2005 13:52:29 -0500 > >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@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@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_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
do: SetVar(CDR(accountcode)=value) On 5/5/05, Matthew Boehm <mboehm@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@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@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 >
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@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@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@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@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@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 > >