To optimize on the phone bill however I would like to have calls that are local for the remote * server placed through the remote server.
How is this accomplished? I first tried the manual approach (dialing an 8 would make the call go through the remote * server) but it doesn't work, the call is still placed from the local server.
This is what I put in my extensions.conf:
[remote-out]
switch => IAX2/user:[EMAIL PROTECTED]/pstn-local
exten => _8.,1,Dial(ZAP/g1/${EXTEN:1},70,T)
exten => _1NXXNXXXXXX,1,Dial(ZAP/g1/${EXTEN})
exten => _NXXXXXX,1,Dial(ZAP/g1/${EXTEN})
exten => _8.,2,Macro(fastbusy)Ideally I would also like * to strip the area code if the remote server is used (it's a local call then) but this is detail. Ultimately I would like to do the same with international calls.
I couldn't find the solution in the wikis.
Thanks all! _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
