LinuxMCE Forums
June 18, 2013, 08:13:15 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: [SOLVED] Prefix, dialplan in 1004  (Read 2270 times)
pw44
Addicted
*
Posts: 653


View Profile
« Reply #30 on: October 25, 2012, 08: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 Sad).....

Best regards,

Paulo

Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2637


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #31 on: October 25, 2012, 09: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.
Logged

Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!