Re: [asterisk-users] Account code PJSIP

2019-05-02 Thread John T. Bittner
Hopefully, this may help someone in the future.

If I set this before I dial out... it works.

I have always in the past set this on hangup... that does not work anymore.

John
Xaccel


From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf 
Of John T. Bittner
Sent: Wednesday, May 1, 2019 12:15 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: [asterisk-users] Account code PJSIP

Does anyone know how to set accountcode into the asterisk CDR when using PJSIP?

I have tried Set(CHANNEL(accountcode)=XX) and a few other older ways... 
nothing works.

If I add accountcode into the pjsip endpoint config it works... but I need to 
set it via dialplan.

Any help is much appreciated.

Testing on asterisk 16.3.0

John Bittner
CTO
[xaccellogoemail]
380 US Highway 46, Suite 500
Totowa, NJ 07512
Phone: 201.806.2602 x2405
Fax:   201.806.2604
Cell:   973.390.1090
www.xaccel.net

CONFIDENTIALITY NOTICE:
This e-mail message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain confidential
and privileged information which should not be shared or forwarded. Any 
unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies of the e-mail.




Teach Canit xAntispam if this mail is spam:
Spam
Not 
spam
Forget previous 
vote
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] account code

2015-03-03 Thread Carlos Chavez

On 2015-03-02 22:53, ricky gutierrez wrote:

Hi list , I have a question with account codes, all my outgoing calls
are authenticated, but now the boss wants to monitor these calls with
the codes.

example: maria has an extension "110", but peter was in place and use
the phone maria , maria then says that she did not make that call to
that number of cell.

like to know who made it?, I think the pin code is my friendo , my
users have a four-digit pin to authenticate, I'm thinking of using the
cdr field userfield

as I can do to read the pin code and write it there?


[call-out-analog]

exten => _9.,1,Authenticate(/var/lib/asterisk/key.txt,am,4)

exten => 9.,n,Set(CDR(userfield)=pin-users)})

exten => _9.,n,Set(__SIP_CODEC=alaw)

exten => _92XXX,n,Dial(SIP/${EXTEN:1}@gw,40,rRT)

same => n,Busy(3)

same => n,Hangup

any idea?

regardss




The authenticate command in your first line will automatically do what 
you want.  The "accountcode" CDR field will have the code you associated 
with the pin number.


http://www.voip-info.org/wiki/view/Asterisk+cmd+Authenticate

If you also want the userfield to have this value just copy it from 
accountcode.


--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
dCAP #1349
+52 (55)9116-91161

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Account code script needed.

2012-04-17 Thread Danny Nicholas
I think OP wants DISA input sent to MYSQL, so it seems to me that an AGI
would be more appropriate.  The AGI would read, do DISA, call and record the
result to the CDR without the "Ugly" dialplan SQL stuff.

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Raj Mathur
(??? ?)
Sent: Tuesday, April 17, 2012 1:11 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Account code script needed.

On Tuesday 17 Apr 2012, cjwstudios wrote:
> Looking for quotes on a very simple script that will require a pin 
> number before allowing a call to be placed.  The pin number would be 
> recorded to their mysql CDR.  Thank you.

Will the DISA application do what you need?

Regards,

-- Raj
-- 
Raj Mathur  || r...@kandalaya.org   || GPG:
http://otheronepercent.blogspot.com || http://kandalaya.org || CC68
It is the mind that moves   || http://schizoid.in   || D17F

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Account code script needed.

2012-04-17 Thread Raj Mathur (राज माथुर)
On Tuesday 17 Apr 2012, cjwstudios wrote:
> Looking for quotes on a very simple script that will require a pin
> number before allowing a call to be placed.  The pin number would be
> recorded to their mysql CDR.  Thank you.

Will the DISA application do what you need?

Regards,

-- Raj
-- 
Raj Mathur  || r...@kandalaya.org   || GPG:
http://otheronepercent.blogspot.com || http://kandalaya.org || CC68
It is the mind that moves   || http://schizoid.in   || D17F

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] account code missing in csv cdr

2005-07-21 Thread Matt Hess
I should also expand this to note that I have also tested the amaflags 
variable and it also has no effect on my sip peer entries' cdr records. 
(latest stable asterisk has been tested)


Matt Hess wrote:

My cdrs are missing accountcodes for incoming calls from other 
asterisk servers..
I've seen a few people mentioning this on the list and the solution 
seems to be setting up a dialplan for incoming calls from a particular 
sip peer.. in my opinion this does not scale well at all and I am 
looking for a solution to correct this problem.


example sip peer:

[asterisk_gw]
type=friend
accountcode=asteriskgw
host=x.x.x.x
restrictcid=no
fromdomain=voip.livewirenet.com
context=lwn
canreinvite=yes

Incoming calls from the peer lack an accountcode field.. a 
NoOp(${ACCOUNTCODE}) is blank for calls coming from the above peer.. 
forcing an accountcode does indeed work with SetAccount() however, as 
I stated, this does not scale.
I should also note that both incoming and outgoing calls involving the 
peer (and many others) do not have an account code.. I am not 
concerned with outgoing calls to the peer in this case.. just incoming 
from the peer..


I also saw in one list post that supposedly the accountcode entry in 
the sip peer should not be relied upon.. but no detail or explanation 
was given as to why that was..



___
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

begin:vcard
fn:Matt Hess
n:Hess;Matt
org:LiveWireNet
adr;dom:;;4577 Pecos St;Denver;CO;80211
email;internet:[EMAIL PROTECTED]
title:Senior Network Engineer
tel;work:303-458-5667
tel;fax:303-458-5725
x-mozilla-html:FALSE
url:http://www.livewirenet.com/
version:2.1
end:vcard

___
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

Re: [Asterisk-Users] Account Code in all cases?

2005-05-05 Thread C F
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 DirectorCypress
> >> Telecommunications [EMAIL PROTECTED]   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
>
>
___
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


Re: [Asterisk-Users] Account Code in all cases?

2005-05-05 Thread Matthew Boehm
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 <[EMAIL PROTECTED]> 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 DirectorCypress
>> Telecommunications [EMAIL PROTECTED]   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


___
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


Re: [Asterisk-Users] Account Code in all cases?

2005-05-05 Thread C F
do:
SetVar(CDR(accountcode)=value)

On 5/5/05, Matthew Boehm <[EMAIL PROTECTED]> 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 DirectorCypress Telecommunications
> [EMAIL PROTECTED]   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


Re: [Asterisk-Users] Account Code in all cases?

2005-05-05 Thread Matthew Boehm
Nope. Just tried it. ForkCDR doesn't mess with accountcode.

-Matthew

kritikus Araklidas wrote:
> Could you use ForkCDR.
> 
> Regards.
> 
> 
> 
>> From: "Matthew Boehm" <[EMAIL PROTECTED]>
>> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
>> 
>> To: 
>> 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 DirectorCypress
>> Telecommunications [EMAIL PROTECTED]   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/
> 
> ___
> 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


RE: [Asterisk-Users] Account Code in all cases?

2005-05-05 Thread kritikus Araklidas
Could you use ForkCDR.
Regards.

From: "Matthew Boehm" <[EMAIL PROTECTED]>
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion 

To: 
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 DirectorCypress Telecommunications
[EMAIL PROTECTED]   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/

___
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