But what do people do with large LCR rules... Build special contexts for each peer/user and then include the main LCR context? This seems a little cludgy.

Is there any way to have the dialplan context set the account for cdr based on the accountcode defined in the sip.conf? At least this way I could have a single, generic dialplan.

-Max

Andres wrote:


Max Clark wrote:

Hi all,

I have what I hope will be a simple problem. In my sip.conf I have defined the accountcode field (see below), and they system does not report any errors when I reload the configuration. However when I look at my cdr detail (either the csv on disk, or the mysql info) the accountcode that I have specified is missing. I have scoured the list and have seen a few postings on this with no solutions. What should I be looking at to debug this.

Thanks in advance,
Max


Setting the accountcode in sip.conf is totally unreliable. It does not work in many cases. Your best bet is to set it in a context via the command:
SetAccount([account]):  Set  the  channel account code for billing


I am running Asterisk 1.0.7 on CentOS 4.0:
Linux 2.6.9-11.EL #1 Wed Jun 8 16:59:52 CDT 2005 i686 i686 i386 GNU/Linux

[provider1]
accountcode=provider1
type=friend
host=10.1.1.1
dtmfmode=rfc2833
username=user
secret=12345
qualify=no
canreinvite=no
insecure=very
disallow=all
allow=ulaw
allow=gsm

[provider2]
type=peer
accountcode=provider2
secret=54321
username=user
host=10.1.1.10
dtmfmode=rfc2833




_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to