salaheddine elharit
2011-Jun-13 16:10 UTC
[asterisk-users] call an external number for other server
hello list i have 1 server installed with asterisk centos and digium card i have installed the same configuration in another unit but in this unit there is no card installed i have created a sip trunk between the 2 servers like that in the server 1 with card sip.conf [asterisk1] type=freind host=ipadresseserver2 context=internal insecure=invite allow=all [2000] type=friend host=dynamic context=internal allow=all extensions.conf [internal] exten => 2000,1,Dial(SIP/2000) exten => 2000,n,Hangup() exten => _1XXX,1,Dial(SIP/${EXTEN}@asterisk1) exten => _1XXX,n,Hangup() in the unit 2 without card sip.conf [asterisk2] type=freind host=ipadresseserver1 context=internal insecure=invite allow=all [1000] type=friend host=dynamic context=internal allow=all extensions.conf [internal] exten => 1000,1,Dial(SIP/1000) exten => 1000,n,Hangup() exten => _2XXX,1,Dial(SIP/${EXTEN}@asterisk2) exten => _2XXX,n,Hangup() i can call the 2000 from my unit and 1000 from my server without issue my question how i can i do in order to call an external number from my unit(server 2) with my server 1 i can call the external number without issue thanks and regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110613/bd3c1f48/attachment.htm>
Steve Edwards
2011-Jun-13 16:30 UTC
[asterisk-users] call an external number for other server
On Mon, 13 Jun 2011, salaheddine elharit wrote: [configuration details snipped]> i can call the 2000 from my unit and 1000 from my server without issue ?> my question how i can i do in order to call an external number from my > unit(server 2)> with my server 1 i can call the external number without issueRead 'Asterisk: The Future of Telephony.' It's available as a free PDF as well as in paper book form. If you only have the single extension on each server, you don't need to do pattern matching in the 'answering' dialplan. To call from server2, DUNDi may be appropriate or it may be overkill for your needs. For me (a 1 man band), I'd just set up a pattern in server2 to match the external number dialing plan of your country and use IAX to dial a new context in server1 that accesses the card in server1. Make sure you restrict access between the hosts by IP addresses and strong passwords to reduce the chance of nasty surprises. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000