How to change 000 to 00 ?

Catalog of dial plans
Post Reply
benifa
Posts: 99
Joined: Mon Jul 23, 2007 12:43 am

How to change 000 to 00 ?

Post by benifa » Mon Mar 28, 2011 10:01 am

Hi folks,

To stop people in my house ringing Malaysia from my landline without bloody asking, I've added this to sipsorcery:

Code: Select all

when /^0060/ then sys.Respond(403, "forbidden")  # blocks Malaysia 0060
Thing is, sometimes I want to call Malaysia. I was thinking, is it possible for me to dial 00060xxxxx (note the extra leading 0)?

In short, how can I make sipsorcery change 00060xxxxxxx to 0060xxxxxxx?

Maybe.. when /^00060/ then change it to ^0060 before sys.Dial("provider") # Malaysia type of thing?

benifa
Posts: 99
Joined: Mon Jul 23, 2007 12:43 am

Re: How to change 000 to 00 ?

Post by benifa » Mon Mar 28, 2011 10:47 am

Oh, I think I have it, is it..

Code: Select all

when /^00060/ then sys.Dial("0060${dst:5}@provider")
?

Post Reply