<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi list,<br><br>I am still a newbie and struggling with tweaking the dial plan to my requirements. I have tried googling for this specific problem, and apologies if I have overlooked the obvious answer already. If you could please be so kind as to point me in the right direction, that would be most appreciated.<br><br>What I am trying to do, is get rid of the initial "+" in phone numbers coming in from VoIP clients on mobile phones. I have outgoing extensions that choose which of two providers to choose (based on cost for different destinations), and I was hoping not having to have two sets of extension rules - one for the 00 and one for the + variety.<br><br>An example of how I'm having to do this now:<br><br>[outgoing]<br><br>exten => _00.,1,Verbose(International call 00 - Vyke)<br>exten => _00.,n,Dial(SIP/vyke/$EXTEN,30,tr) <br>exten => _00.,n,Hangup<br><br>exten => _+.,1,Verbose(International call + - Vyke) <br>exten => _+.,n,Dial(SIP/vyke/00${EXTEN:1},30,tr) <br>exten => _+.,n,Hangup<br><br>I was however hoping that it'd be possible to have a general rule that would match the initial +, rewrite it to 00 and continue with the first of the two patterns shown above.<br><br>A banale example (which does not work):<br><br>[outgoing]<br><br>exten => _+.,1,Goto(outgoing,00${EXTEN:1},1)<br><br>exten => _00.,1,Verbose(International call 00 - Vyke)<br>
exten => _00.,n,Dial(SIP/vyke/$EXTEN,30,tr) <br>
exten => _00.,n,Hangup<br>
<br>What am I doing wrong here?<br><br>Thanks in advance for your kind assistance!<br><br>Best regards<br>Jan<br><br /><hr />Share your photos with Windows Live Photos – Free <a href='http://clk.atdmt.com/UKM/go/132630768/direct/01/' target='_new'>Find out more!</a></body>
</html>