News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

[SOLVED] Prefix, dialplan in 1004

Started by brononius, July 31, 2012, 10:23:24 AM

Previous topic - Next topic

pw44

Hi,
my current dialplan is:

mysql> select * from extensions where context='outbound-allroutes'
    -> ;
+------+--------------------+-------+----------+-------+---------------------------------------------+
| id   | context            | exten | priority | app   | appdata                                     |
+------+--------------------+-------+----------+-------+---------------------------------------------+
| 5936 | outbound-allroutes | 190   |        1 | Macro | dialout-trunk,/,${EXTEN},,                  |
| 5937 | outbound-allroutes | 190   |        2 | Macro | outisbusy,                                  |
| 5938 | outbound-allroutes | 193   |        1 | Macro | dialout-trunk,/,${EXTEN},,                  |
| 5939 | outbound-allroutes | 193   |        2 | Macro | outisbusy,                                  |
| 5976 | outbound-allroutes | _7.   |        1 | Macro | dialout-trunk,SIP/054138594676,${EXTEN:1},, |
| 5977 | outbound-allroutes | _7.   |        2 | Macro | outisbusy,                                  |
| 5958 | outbound-allroutes | _8.   |        1 | Macro | dialout-trunk,SIP/2122498618,${EXTEN:1},,   |
| 5959 | outbound-allroutes | _8.   |        2 | Macro | outisbusy,                                  |
| 5940 | outbound-allroutes | _9.   |        1 | Macro | dialout-trunk,SIP/2062036594,${EXTEN:1},,   |
| 5941 | outbound-allroutes | _9.   |        2 | Macro | outisbusy,                                  |
+------+--------------------+-------+----------+-------+---------------------------------------------+

The trunks:
1 sipgate (dialout-trunk,SIP/054138594676)
2 spa3102 (dialout-trunk,SIP/2122498618)
3 voipcheap (dialout-trunk,SIP/2062036594)

The plans (by trunk)
1 - sipgate
dial rules:
00+XXXXXXX.
outbound:
900|XXXXXXX.
trunk sequence: voipceap, sipgate


2 - spa3102
dial rules:
XXXXXXXX
08+08|00XXXXX.
005521|XXXXXXXX
031+0055|XXXXXXXXXX
031+0|XXXXXXXXXX
031+XXXXXXXXXX
outbound:
121|XXXXXXXX
19X
1|XXXXXXXXXX
9|0055ZXXXXXXXXX
9|0800XXXXX.
9|0ZXNXXXXXXX
9|NXXXXXXX
9|ZXX
trunk sequence: spa3102

3 - voipcheap
dial rules:
00+XXXXXXX.
outbound:
800|XXXXXXX.
900|XXXXXXX.
trunk sequence: voipcheap, sipgate

Ok, how do i insert it in the table, defining the rules, outbound and trunk order, please?
I want to use the prefix 9 for all. For now, as i'm not finding out how, i defined 3 prefixes (uggly :().....

Best regards,

Paulo


Marie.O

At the moment there is no way to specify rules. If you haven't already, feel free to create a feature request.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]