[Asterisk-Users] calling out from a remote * server

Remco Barende asterisk at barendse.to
Fri Oct 15 12:04:55 MST 2004


I have set up 2 * servers and connected them via IAX2, the connection 
works, so far so good.

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:password at 10.10.10.10/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!



More information about the asterisk-users mailing list