Good day all I've tried my iax conf and I'm struggling.So I want to know If someone else got this working and if they can pleas send my their configs I have to asterisk server,in different tows,both offices connected wit a direct line so both servers are on the same network running SIP.Each town got different extension register to each sever.Town A=100+ town B=200+ How do I get town A people to dial 201 and it will go to sown B's server's 201 SIP users Please not that I'm only a newbie and my terms may be wrong but I'm really having a bod time with this Please help Thanks ALtus
Quoting asterisk-users-request@lists.digium.com:> How do I get town A people to dial 201 and it will go to sown B's > server's 201 SIP users > Please not that I'm only a newbie and my terms may be wrong but I'm > really having a bod time with this > Please help > Thanks > ALtus >I have a doc on it. (Sorry was going to copy/paste but my mail reader didn't like the columns from the doc.) If you want it drop me a line and I'll send you the file. (Should also probably put it in the wiki :-) dbc. -- David Cook
Dave, I am implementing this solution and would appreciate if you can send me the doc at this email address - netwebgroup@yahoo.com. Thanks Seshu Kanuri -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of David Cook Sent: Monday, August 23, 2004 8:30 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Re: 2 servers Quoting asterisk-users-request@lists.digium.com:> How do I get town A people to dial 201 and it will go to sown B's > server's 201 SIP users > Please not that I'm only a newbie and my terms may be wrong but I'm > really having a bod time with this > Please help > Thanks > ALtus >I have a doc on it. (Sorry was going to copy/paste but my mail reader didn't like the columns from the doc.) If you want it drop me a line and I'll send you the file. (Should also probably put it in the wiki :-) dbc. -- David Cook _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Quoting asterisk-users-request@lists.digium.com:> From: "Kanuri, Seshu" <seshu.kanuri@citigroup.com> > > Dave, > > I am implementing this solution and would appreciate if you can send > me the doc at this email address - netwebgroup@yahoo.com. > > Thanks > Seshu Kanuri >Enough people have asked me for this that I will try and condense it for the list. I admit I wanted to put it on the wiki and couldn't figure out how to start a new page!!! (Maybe I'm just thick ;-( There is also another document on the wiki about the subject at http://www.voip-info.org/wiki-Asterisk+-+dual+servers Anyhow, here is mine: Method 1 Rec'g Svr iax.conf [REC_SERVER] type=user host=my.calling.server.ca secret=mysecret context=local trunk=yes Send'g Svr extensions.conf [mycontext] exten => _5XXX,1,Dial(IAX2/REC_SERVER:mysecret@my.receiving.server.ca/${EXTEN}@local) exten => _5XXX,2,Hangup exten => _5XXX,102,Hangup Any call in the mycontext context on Calling Server to extensions 5000-5999 (mapped by extension _5XXX) will get sent to receiving server (my.receiving.server.ca) into the local context on the receiving server. Performing the same configuration in the opposite direction will allow cross-calls between Asterisk systems. Pros: Simple, all references in one file per server. Cons: Information in dialing string will appear in logs inclusive of user:password. Dial string becomes very long. Method 2 Rev'g Svr iax.conf[REC_SERVER] type=user host=my.calling.server.ca secret=mysecret context=local trunk=yes Send'g Svr iax.conf [REMOTE_SERVER] type=peer host=my.receiving.server.ca secret=mysecret context=local extensions.conf [mycontext] exten => 5XXX,1,Dial(IAX2/REMOTE_SERVER/${EXTEN}) exten => _5XXX,2,Hangup exten => _5XXX,102,Hangup Pros: User:Password are stored in the calling server?s iax.conf file and not part of the Dial string. This is more secure in that they are not recorded in log in files.Dial strings much shorter and concise. Cons: Calling server now must have iax.conf and extensions.conf coordinated making setup a little more complicated.Must user ?type=? definition correctly:Caller = ?peer?; Receiver = ?user?Type=friend is a bi-directional relationship meaning both ?peer? and ?user? at the same time. Unknown IP (Dynamic IP on one server) Register Command If the calling server does not have a fixed IP address or DNS namespace then the iax.conf file description of the calling server located on the receiving server should specify host=dynamic. If the calling server host is specified as dynamic, the calling server must register with the receiving server with the register command. Rec'g Svr iax.conf [REC_SERVER] type=user host=dynamic secret=mysecret context=local trunk=yes Send'g Svr iax.conf register => REC_SERVER:mysecret@my.receiving.server.ca [REMOTE_SERVER] type=peer host=dynamic context=local extensions.conf [mycontext] exten => 5XXX,1,Dial(IAX2/REMOTE_SERVER/${EXTEN}) exten => _5XXX,2,Hangup exten => _5XXX,102,Hangup I hope this is both accurate and helpful! dbc.
Good day all I got my 2 asterisk servers talcking 2 each other using iax and sip thanks to davids doc here But... Only one box's has a zaptel card in! How do I get users from the other box to dial out threw the server with the card in? Thanks ALtus -------------- next part -------------- A non-text attachment was scrubbed... Name: Connecting Two Asterisk Servers.doc Type: application/octet-stream Size: 29696 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040927/9b20835f/ConnectingTwoAsteriskServers.obj
Quoting asterisk-users-request@lists.digium.com:> > Good day all > I got my 2 asterisk servers talcking 2 each other using iax and sip > thanks to davids doc here > But... > Only one box's has a zaptel card in! > How do I get users from the other box to dial out threw the server > with > the card in? > Thanks > ALtusIn the document example the receiving server has extensions 5000-5999, the sending server does not. However, the _5XXX definition on the sending server matches all extensions in that range and forwards them via IAX2 to the receiving server. exten => _5XXX,1,Dial(IAX2/REC_SERVER:mysecret@my.receiving.server.ca/${EXTEN}@local) exten => _5XXX,2,Hangup exten => _5XXX,102,Hangup dbc. -- David Cook
Quoting asterisk-users-request@lists.digium.com:> Good day all > I got my 2 asterisk servers talcking 2 each other using iax and sip > thanks to davids doc here > But... > Only one box's has a zaptel card in! > How do I get users from the other box to dial out threw the server > with > the card in? > Thanks > ALtusSorry, didn't read the post completely - my bad! You need to add an extension macro in the sending server something like this: exten => _9.,Dial(IAX2/REC_SERVER:mysecret@my.receiving.server.ca/${EXTEN}@local exten => _9.,2,Hangup exten => _9.,102,Hangup This will all calls beginning with "9" to go to the receiving server and be deposited into the "local" context. This would mean you can have _no_ extensions on the local machine that begin with a 9. You can change this to be any pattern format you like but it must be mutually exclusive to your local switch. You then need to have a similar entry in the receiving server's extensions.conf file (in the correct context where these calls are going) to pickup those calls and dial out on the Zap interface like the following for 9+10 digit dialing: LOCALTRUNK=Zap/g1 ; Trunk interface [dial-local-from-PSTN-forced] ; dial out local 10 digit calls forced from the PSTN group and strip the '9' exten => _9NXXNXXXXXX,1,Dial(${LOCALTRUNK}/${EXTEN:1},30,tr) exten => _9NXXNXXXXXX,2,Hangup exten => _9NXXNXXXXXX,102,Congestion exten => _9NXXNXXXXXX,103,Hangup dbc -- David Cook