[asterisk-users] call an external number for other server

salaheddine elharit salah.elharit200 at gmail.com
Mon Jun 13 11:10:30 CDT 2011


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>


More information about the asterisk-users mailing list