Hi!
I've written code that dumps one dialplan over the RPC interface. I think it's a
useful addition.
Ok to commit?
Cheers,
/O
/usr/local/sbin/kamcmd dialplan.dump 100
{
DPID: 100
ENTRIES: {
ENTRY: {
PRIO: 1
MATCHOP: 1
MATCHEXP: ^sip:edvina@.*$
MATCHLEN: 0
SUBSTEXP: ^(.*)$
REPLEXP: sip:pinefrog1@sipguru.no
ATTRS: Pepparkaka blåbär
}
ENTRY: {
PRIO: 1
MATCHOP: 1
MATCHEXP: ^sip:oej@.*$
MATCHLEN: 0
SUBSTEXP: ^(.*)$
REPLEXP: sip:pinefrog1@sipguru.no
ATTRS: Pinefrogalias
}
ENTRY: {
PRIO: 2
MATCHOP: 2
MATCHEXP: Blåbär.*
MATCHLEN: 0
SUBSTEXP: Subst
REPLEXP: Replace me
ATTRS: hej attribute hey hey hey
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
}
ENTRY: {
PRIO: 20
MATCHOP: 0
MATCHEXP: Hej*
MATCHLEN: 0
SUBSTEXP:
REPLEXP:
ATTRS: pelle
}
ENTRY: {
PRIO: 25
MATCHOP: 1
MATCHEXP:
MATCHLEN: 0
SUBSTEXP:
REPLEXP:
ATTRS: gurka
}
}
}