[asterisk-users] Best way ro run 2 or more asterisk servers?

David Cunningham dcunningham at voisonics.com
Mon Dec 21 08:13:56 CST 2009


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 <landysaccount at yahoo.com>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=sssssss
> auth=md5
> context=from_client
> ;peercontext=from_asterisk
> host=172.16.0.11
> trunk=yes
> qualify=yes
>
> iax2 show peers
> Name/Username    Host                 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/${EXTEN}@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=xxxxxxx
> context=from_server
> trunk=yes
> auth=md5
> qualify=yes
>
> iax2 show peers
> Name/Username    Host                 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/${EXTEN}@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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091221/262d0459/attachment.htm 


More information about the asterisk-users mailing list