Re: [asterisk-users] Best way ro run 2 or more asterisk servers?
Since you're not registering either server with the other, where is the call going to pick up the required username and password to connect to the other server? On Wed, Dec 16, 2009 at 12:09 AM, Landy Landy wrote: > I'm trying to get two server communicate with each other and call from one > to the other but, I'm having a lot of problems. > > I tried to create a iax trunk between the two: > At the server: > [client] > type=friend > username=asterisk2 > authuser=asterisk2 > fromuser=asterisk2 > secret=sss > auth=md5 > context=from_client > ;peercontext=from_asterisk > host=172.16.0.11 > trunk=yes > qualify=yes > > iax2 show peers > Name/UsernameHost Mask Port Status > client/asterisk 172.16.0.11 (S) 255.255.255.255 4569 (T) (E) OK (3 > ms) > 1 iax2 peers [1 online, 0 offline, 0 unmonitored] > > extensions.conf > [to_client] > exten => _3XX,1,Verbose(". To Asterisk2 Server .") > exten => _3XX,n,Dial(IAX2/${ext...@client) > exten => _3XX,n,Hangup() > > [from_client] > include => local-dial > > > > > At the client: > [server] > type=friend > host=172.16.0.3 > username=asterisk > authuser=asterisk > fromuser=asterisk > secret=xxx > context=from_server > trunk=yes > auth=md5 > qualify=yes > > iax2 show peers > Name/UsernameHost Mask Port Status > server/asterisk 172.16.0.3 (S) 255.255.255.255 4569 (T) (E) OK (3 > ms) > 1 iax2 peers [1 online, 0 offline, 0 unmonitored] > > extensions.conf > > [from_server] > include => local-dial > > [to_server] > exten => _5XXX,1,Verbose(". Trying to contact ${EXTEN:1} @ asterisk > .") > exten => _5XXX,n,Dial(IAX2/${ext...@server) > exten => _5XXX,n,Hangup > > According to some reading, I do NOT need to register neither one. > > When I try to call from one end to the other I get: > > [Dec 15 03:06:04] NOTICE[4265]: chan_iax2.c:10338 socket_process: Host > 172.16.0.3 failed to authenticate as 300 > > > Please help. > > Thanks. > > > > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- David Cunningham Voisonics IVR development, VOIP consultancy http://voisonics.com/ US toll-free: +1 888 842 2720 UK: +44 (0) 20 3411 5024 Australia: +61 (0) 2 9037 2180 ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Best way ro run 2 or more asterisk servers?
On Thursday 17 December 2009 04:37:52 Landy Landy wrote: > --- On Wed, 12/16/09, Landy Landy wrote: > > From: Landy Landy > > Subject: Re: [asterisk-users] Best way ro run 2 or more asterisk servers? > > To: "Asterisk Users Mailing List - Non-Commercial Discussion" > > Date: Wednesday, December 16, 2009, > > 7:28 AM > > > > > peering useful: http://astrecipes.net/index.php?n=204Thanksl. > > > > I followed exactly what' on that tutorial and can't get it > > to work. Now, > > > > I tried: > > > > example > > > > Server1 > > > > [server2] > > type=peer > > context=from_client > > host=server2-ip > > > > > > Server2 > > > > [server1] > > type=peer > > context=from_client > > host=server1-ip > > > > without the username and secret and now works but, why > > isn't working with the usernames? and is this way as secured > > as using username and secret? > > Can someone please clarify this. I'm confused, I thought a server needed to > be secured with it's username and password. In some ways, it's more secure, as only hosts with the specified IP can make calls on that peer. With username/password, it remains a possibility, especially if the username and password are easy to guess, that another host could authenticate and make calls. While it's not impossible for another host to take over a server's IP address, the technique is significantly more limited in terms of where in the network such spoofing may occur. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Best way ro run 2 or more asterisk servers?
--- On Wed, 12/16/09, Landy Landy wrote: > From: Landy Landy > Subject: Re: [asterisk-users] Best way ro run 2 or more asterisk servers? > To: "Asterisk Users Mailing List - Non-Commercial Discussion" > > Date: Wednesday, December 16, 2009, 7:28 AM > > peering useful: http://astrecipes.net/index.php?n=204Thanksl. > > I followed exactly what' on that tutorial and can't get it > to work. Now, > > I tried: > > example > > Server1 > > [server2] > type=peer > context=from_client > host=server2-ip > > > Server2 > > [server1] > type=peer > context=from_client > host=server1-ip > > without the username and secret and now works but, why > isn't working with the usernames? and is this way as secured > as using username and secret? Can someone please clarify this. I'm confused, I thought a server needed to be secured with it's username and password. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Best way ro run 2 or more asterisk servers?
> peering useful: http://astrecipes.net/index.php?n=204Thanksl. I followed exactly what' on that tutorial and can't get it to work. Now, I tried: example Server1 [server2] type=peer context=from_client host=server2-ip Server2 [server1] type=peer context=from_client host=server1-ip without the username and secret and now works but, why isn't working with the usernames? and is this way as secured as using username and secret? ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Best way ro run 2 or more asterisk servers?
See if you find this tutorial on IAX peering useful: http://astrecipes.net/index.php?n=204 Thanks l. 2009/12/15 Landy Landy > Hello List. > > I have a question regarding connecting two asterisk servers. I'm trying to > learn how asterisk comunicates from server to server. I already have a > server running smoothly now, I'm installing another one to test it along > side the actual one. > > I would like to run different scenarios: > > 1. Have one of the boxes at a different location outside the LAN and have > them communicate. > > 2. Have both boxes on the same physical location with different extensions, > for ei. have box 1 serve exts 100 - 200 and box 2 serve exts 300 - 600 and > iax2. Box 1 would be connected to a pstn line and box 2 connected to a voip > provider. > > Now, do I need to configure dundi or just have the register option on both > boxes? > > Thanks in advanced for your help. > > > > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- Loway - home of QueueMetrics - http://queuemetrics.com ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Best way ro run 2 or more asterisk servers?
> Date: Wednesday, December 16, 2009, 1:26 AM > trust both the side giving IP address > in the sip.conf I did this in the iax.conf file [client] type=friend username=asterisk2 authuser=asterisk2 fromuser=asterisk2 secret=sss auth=md5 context=from_client host=172.16.0.11 trunk=yes qualify=yes for both the client and server do I need it also in the sip.conf? ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Best way ro run 2 or more asterisk servers?
I'm trying to get two server communicate with each other and call from one to the other but, I'm having a lot of problems. I tried to create a iax trunk between the two: At the server: [client] type=friend username=asterisk2 authuser=asterisk2 fromuser=asterisk2 secret=sss auth=md5 context=from_client ;peercontext=from_asterisk host=172.16.0.11 trunk=yes qualify=yes iax2 show peers Name/UsernameHost Mask Port Status client/asterisk 172.16.0.11 (S) 255.255.255.255 4569 (T) (E) OK (3 ms) 1 iax2 peers [1 online, 0 offline, 0 unmonitored] extensions.conf [to_client] exten => _3XX,1,Verbose(". To Asterisk2 Server .") exten => _3XX,n,Dial(IAX2/${ext...@client) exten => _3XX,n,Hangup() [from_client] include => local-dial At the client: [server] type=friend host=172.16.0.3 username=asterisk authuser=asterisk fromuser=asterisk secret=xxx context=from_server trunk=yes auth=md5 qualify=yes iax2 show peers Name/UsernameHost Mask Port Status server/asterisk 172.16.0.3 (S) 255.255.255.255 4569 (T) (E) OK (3 ms) 1 iax2 peers [1 online, 0 offline, 0 unmonitored] extensions.conf [from_server] include => local-dial [to_server] exten => _5XXX,1,Verbose(". Trying to contact ${EXTEN:1} @ asterisk .") exten => _5XXX,n,Dial(IAX2/${ext...@server) exten => _5XXX,n,Hangup According to some reading, I do NOT need to register neither one. When I try to call from one end to the other I get: [Dec 15 03:06:04] NOTICE[4265]: chan_iax2.c:10338 socket_process: Host 172.16.0.3 failed to authenticate as 300 Please help. Thanks. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Best way ro run 2 or more asterisk servers?
Hello List. I have a question regarding connecting two asterisk servers. I'm trying to learn how asterisk comunicates from server to server. I already have a server running smoothly now, I'm installing another one to test it along side the actual one. I would like to run different scenarios: 1. Have one of the boxes at a different location outside the LAN and have them communicate. 2. Have both boxes on the same physical location with different extensions, for ei. have box 1 serve exts 100 - 200 and box 2 serve exts 300 - 600 and iax2. Box 1 would be connected to a pstn line and box 2 connected to a voip provider. Now, do I need to configure dundi or just have the register option on both boxes? Thanks in advanced for your help. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users