keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about VS-GW2120/GW1600/GW1202 and WGW1002G GSM Series VoIP Gateway

How can I disable international calls on wgw1002g

4 years 10 months ago #13795 by hua
[rtg-DE_out-1]
exten => _0049.,1,NoOp( _0049. matches Rule rtg-DE_outg-1)
exten => _0049.,n,Set(CDR_CALLEEID=${EXTEN})
exten => _0049.,n,GrpPolicy(RO_gsm_all)
exten => _0049.,n,Macro(dial-failover,,${EXTEN},${POLICY_DE_gsm_set})
exten => _0049.,n,Goto(nocdr,s,1)
4 years 10 months ago #13798 by dika
GREAT! Thanks hua,

How can I extend this and add another option - just to use numbers with 0 zero ...something like _0Z. ?
[rtg-DE_out-1]
exten => _0049.,1,NoOp( _0049. matches Rule rtg-DE_outg-1)
exten => _0049.,n,Set(CDR_CALLEEID=${EXTEN})
exten => _0049.,n,GrpPolicy(RO_gsm_all)
exten => _0049.,n,Macro(dial-failover,,${EXTEN},${POLICY_DE_gsm_set})
exten => _0049.,n,Goto(nocdr,s,1)

I can copy this and put it after that just will change _0049. to be _0Z. this will allows only numbers with one 0 at the begging but ...what about the order of the dial plan applications? Should I add it again with 1 n n n or they should be just again with n n n n
4 years 10 months ago #13800 by hua
[rtg-DE_out-1]
exten => _0049.,1,NoOp( _0049. matches Rule rtg-DE_outg-1)
exten => _0049.,n,Set(CDR_CALLEEID=${EXTEN})
exten => _0049.,n,GrpPolicy(RO_gsm_all)
exten => _0049.,n,Macro(dial-failover,,${EXTEN},${POLICY_DE_gsm_set})
exten => _0049.,n,Goto(nocdr,s,1)

exten => _0048.,1,NoOp( _0048. matches Rule rtg-DE_outg-1)
exten => _0048.,n,Set(CDR_CALLEEID=${EXTEN})
exten => _0048.,n,GrpPolicy(RO_gsm_all)
exten => _0048.,n,Macro(dial-failover,,${EXTEN},${POLICY_DE_gsm_set})
exten => _0048.,n,Goto(nocdr,s,1)


add it again with 1 n n n like this .
4 years 10 months ago #13806 by dika
Thanks hua, it works well now :)
Time to create page: 0.033 seconds
Powered by Kunena Forum