Author Topic: [SOLVED] Prefix, dialplan in 1004  (Read 20260 times)

pw44

  • Addicted
  • *
  • Posts: 666
    • View Profile
Re: [SOLVED] Prefix, dialplan in 1004
« Reply #30 on: October 25, 2012, 09:25:52 pm »
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: [SOLVED] Prefix, dialplan in 1004
« Reply #31 on: October 25, 2012, 10:14:17 pm »
At the moment there is no way to specify rules. If you haven't already, feel free to create a feature request.