Extn to get skype out

Hello, trying to figure out where I went wrong? Want to use 5 then the number to use skype out. I can make the skye out work with just the standard 1-number but not a 5 then number. I want to use my sip number as the default.

This is what I have;

exten => s,1,Set(CALLERID(all)=myname <1260570xxxx>)
exten => s,2,Dial(SIP/${MACRO_EXTEN:1}@sipphone)
exten => s,3,Macro(fastbusy)
exten => s,4,Hangup
exten => s,103,Macro(fastbusy)
exten => s,104,Wait.3
exten => s,105,Playtones(congestion)
exten => s,106Wait,30
exten => s,107Hangup
exten => t,1,Payback(vm-goodbye)
exten => t,2,Hangup

exten => _1NXXNXXXXXX,1,Macro(trunk,${EXTEN})
exten => _1747NXXXXXX,1,Dial(SIP/${EXTEN}@sipbroker.com,60)

exten => _5NXXNXXXXXX,1,Dial(Skype/myaccount@+${EXTEN})

exten => _9X.,1,Macro(trunk,${EXTEN:1})
exten => _5X.,1,Macro(trunk,${EXTEN:2})

exten => _5X.,1,Dial(Skype/myacount@+${EXTEN:2})

Well first your line:

exten => _5NXXNXXXXXX,1,Dial(Skype/myaccount@+${EXTEN})

would dial Skype/myaccount@+5########## - I think you want ${EXTEN:1} to remove the ‘5’ you’re using as the steer digit, and I don’t know what the + is doing there either.

Then your two extensions:

exten => _5X.,1,Macro(trunk,${EXTEN:2})
exten => _5X.,1,Dial(Skype/myacount@+${EXTEN:2})

These are the same extension (_5X.) with the same priority (1) and I think ‘first wins’ here, so the Macro would be the only thing being run if the pattern matched (which it probably wouldn’t due to the _5NXXNXXXXXX extension above, though it obviously depends on what you dialed.)

Thanks, I will try that. + is required for a skype call from the US.

Ah ok (I don’t use Skype Out).

Do you also have to dial a 1 before the area code? If so then your extension entry further would need to either need to include the 1 if you want users to have to dial that (13335551212) or put the 1 in the Dial() string if the user only enters 10 digits (3335551212) - so

exten => _51NXXNXXXXXX,1,Dial(Skype/myaccount@+${EXTEN:1})


exten => _5NXXNXXXXXX,1,Dial(Skype/myaccount@+1${EXTEN:1})


Thank you very much. This one worked; exten => _51NXXNXXXXXX,1,Dial(Skype/myaccount@+${EXTEN:1})