[asterisk-users] Account code PJSIP

John T. Bittner john at xaccel.net
Thu May 2 03:39:35 CDT 2019


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-bounces at 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 <asterisk-users at lists.digium.com>
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190502/050ae2bc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4300 bytes
Desc: image001.png
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190502/050ae2bc/attachment.png>


More information about the asterisk-users mailing list