Asterisk, Sent accountcode between 2 asterisk

Home » Asterisk Users » Asterisk, Sent accountcode between 2 asterisk
Asterisk Users 2 Comments


I have two Asterisk Server:

The first server “A”, all phone are connected
The Second server “B” only route call to a lot of SIP supplier

the server A sent:

; Destination: Non connu dans le DialPlan – Apparaitra en UNKNOW dans le CDR
exten => _X.,1,Set(CDR(CodeTier)=BUS-UNKNOW)
exten => _X.,2,Dial(IAX2/SERVERB/${EXTEN},180,rt)
exten => _X.,3,Hangup

anyone know if it’s possible to add the CDR Accountcode to this process
for get it on the second server “B” ?

i want the same accountcode on the 2 servers


2 thoughts on - Asterisk, Sent accountcode between 2 asterisk

  • Send the account code as a custom header variable encode it on A and read it on B. You can send any variables you want using this method. I currently send about 10 variables on switch transfers. If you need an example ping me back and I will send one when I get in the office.


  • On Sat, Mar 5, 2011 at 11:52 AM, Steve Edwards

    In 1.6.2 and above, you can set arbitrary variables with IAXVAR() on
    one side and retrieve
    them on the other side.