I’ve got a problem with dialout to a pstn-phonenumber. My sip outbound provider require an e.164 userpart e.g. +49301234567 to dialout. It isn’t possible to dial 0301234567 or 0049301234567. How could I replace automatically in asterisk config the numbers with e.g. +49
if a sip client dial +49301234567 everything is ok
if a sip client dial 0049301234567 replace 00 with +
if a sip client dial 0301234567 replace 0 with +49
if a sip client dial +49301234567 everything is ok
if a sip client dial 0049301234567 replace 00 with +[/quote]
exten => _0049.,1,Dial(SIP/+${EXTEN:2}@123.123.123.123)