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:[email protected]] On Behalf 
Of John T. Bittner
Sent: Wednesday, May 1, 2019 12:15 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<[email protected]>
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)=XXXXXX) 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<http://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<http://mx1.xantispam.net/canit/b.php?c=s&i=0206R70lG&m=6ea45c5ca3d8&rlm=xaccel-net>
Not 
spam<http://mx1.xantispam.net/canit/b.php?c=n&i=0206R70lG&m=6ea45c5ca3d8&rlm=xaccel-net>
Forget previous 
vote<http://mx1.xantispam.net/canit/b.php?c=f&i=0206R70lG&m=6ea45c5ca3d8&rlm=xaccel-net>
-- 
_____________________________________________________________________
-- 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

Reply via email to