Hi,
I am using a2billing with mysql realtime. I can register to the asterisk server with the following config:
sipusers => mysql,mya2billing,cc_sip_buddies
sippeers => mysql,mya2billing,cc_sip_buddies
extensions => mysql,asterisk,dialplan
My dialplan (extensions) looks like this:
mysql> select * from dialplan;
+----+-----------+-------+----------+---------+-----------------+-------+-------+
| id | context | exten | priority | app | appdata | descr | flags |
+----+-----------+-------+----------+---------+-----------------+-------+-------+
| 1 | a2billing | _X. | 1 | Answer | | | 0 |
| 3 | a2billing | _X. | 3 | DeadAGI | a2billing.php | | 2 |
| 2 | a2billing | _X. | 2 | Wait | | | 0 |
| 5 | a2billing | _X. | 5 | Hangup | | | 0 |
I am not able to dial outside. For all calls that I try to make, I get an error message like the example below:
[Apr 3 18] NOTICE[84745]: chan_sip.c:17171 handle_request_invite: Call from '1548944259' to extension '18' rejected because extension not found.
It seems like its not hitting the _X. , although the context is correct (its the same one with the user's context:
ast1*CLI> sip show users
Username Secret Accountcode Def.Context ACL NAT
1548944259 9337633556 1548944259 a2billing No Always
ast1*CLI>
This type of dialplan/extensions table used to work ok before trying to make a2billing work with realtime.
Any idea what I am doing wrong?
Thanks!
fixed!
I had to put the following code in extensions.conf
[cc_sip_buddies]
switch => Realtime/@cc_sip_buddies
include => parkedcalls
(i had a different context before trying to make a2billing work realtime).
|