Im having problems setting up a trunk between two locations. Heres the setup I have: Server A is connected to the PSTN at my datacenter Server B is connected to a clients e1 line at his datacenter I only want to route calls from Server B to Server A and out through the PSTN. Server A has a lot of other things connecting to it, so I need a very specific context for all calls to go through. Because of the volume of calls between the two servers I wish to setup a trunk. Server A has this entry in iax.conf [serverb] type=friend host=serverbipaddress trunk=yes auth=md5,plaintext,rsa secret=s3rv3rb username=serverb context=serverb qualify=yes Server B doesnt have much in iax.conf - only codec and port information under [general] Server B is using this in his extensions.conf though: exten => _X.,1,Dial,IAX2/serverb:s3rv3rb@serveraipaddress/${EXTEN}|180 now i know some things are wrong, i know i can use type=peer because its only a one way connection (im not making calls to serverb, only recieving calls from it) but when i do an iax2 trunk debug i get this: IAX2 Trunk Debug Requested Beginning trunk processing Processed trunk peer 'serverb' (0.0.0.0:0) with 0 call(s) Ending trunk processing with 1 peers and 0 calls processed even though there are calls going between the servers - so obviously they arent using the trunking facility. so whats the deal. what do i have to do in iax.conf on both sides and in extensions.conf on the side of ServerB thanks in advance duncan
try trunking=yes On Wed, 2003-10-08 at 11:15, duncan wrote:> Im having problems setting up a trunk between two locations. Heres the > setup I have: > > Server A is connected to the PSTN at my datacenter > Server B is connected to a clients e1 line at his datacenter > > I only want to route calls from Server B to Server A and out through the > PSTN. Server A has a lot of other things connecting to it, so I need a > very specific context for all calls to go through. Because of the volume > of calls between the two servers I wish to setup a trunk. > > Server A has this entry in iax.conf > > [serverb] > type=friend > host=serverbipaddress > trunk=yes > auth=md5,plaintext,rsa > secret=s3rv3rb > username=serverb > context=serverb > qualify=yes > > Server B doesnt have much in iax.conf - only codec and port information > under [general] > > Server B is using this in his extensions.conf though: > > exten => _X.,1,Dial,IAX2/serverb:s3rv3rb@serveraipaddress/${EXTEN}|180 > > now i know some things are wrong, i know i can use type=peer because its > only a one way connection (im not making calls to serverb, only recieving > calls from it) > > but when i do an iax2 trunk debug i get this: > > IAX2 Trunk Debug Requested > Beginning trunk processing > Processed trunk peer 'serverb' (0.0.0.0:0) with 0 call(s) > Ending trunk processing with 1 peers and 0 calls processed > > even though there are calls going between the servers - so obviously they > arent using the trunking facility. so whats the deal. what do i have to > do in iax.conf on both sides and in extensions.conf on the side of ServerB > > thanks in advance > > > > duncan > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users-- Sample configs and more: http://www.fnords.org/~eric/asterisk/ BTEL Consulting +1-850-484-4535 x2111 (Pensacola) +1-504-595-3916 x2111 (New Orleans) +1-877-677-9643 x2111 (Toll Free)
>try trunking=yesi already have trunk=yes (which is correct according to the version of the handbook i have) and it doesnt seem to be using it duncan
duncan wrote:> i already have trunk=yes (which is correct according to the version of > the handbook i have) and it doesnt seem to be using itYou have to have a matching type=peer on each end to use IAX2 Trunking? How about getting it working without trunking first? Jeremy McNamara
Look at the iax.conf.sample in the Asterisk source directory. Maybe the Handbook is wrong. If so, report it to bugs.digium.com. On Wed, 2003-10-08 at 11:55, duncan wrote:> >try trunking=yes > > i already have trunk=yes (which is correct according to the version of the > handbook i have) and it doesnt seem to be using it > > > > duncan > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users-- Sample configs and more: http://www.fnords.org/~eric/asterisk/ BTEL Consulting +1-850-484-4535 x2111 (Pensacola) +1-504-595-3916 x2111 (New Orleans) +1-877-677-9643 x2111 (Toll Free)
>>i already have trunk=yes (which is correct according to the version of >>the handbook i have) and it doesnt seem to be using it > >You have to have a matching type=peer on each end to use IAX2 Trunking? > >How about getting it working without trunking first?it is working without trunking - calls are going from serverb to servera. now if i have matching entries on both servers the calls are rejected, and im not sure why. if i have matching entries what information do i put in each one. does someone have an example of this i can see, everytime i try and set it up it fails? duncan
>Look at the iax.conf.sample in the Asterisk source directory. Maybe the >Handbook is wrong. If so, report it to bugs.digium.com.from my iax.conf.sample ; ;[biggateway] ;type=peer ;host=192.168.0.1 ;secret=myscret ;trunk=yes ; Use IAX2 trunking with this host ; trunk=yes, not trunking=yes can anyone verify this? maybe its an update that has changed over time. duncan
>Im having problems setting up a trunk between two locations. Heres the >setup I have: > >Server A is connected to the PSTN at my datacenter >Server B is connected to a clients e1 line at his datacenter > >I only want to route calls from Server B to Server A and out through the >PSTN. Server A has a lot of other things connecting to it, so I need a >very specific context for all calls to go through. Because of the volume >of calls between the two servers I wish to setup a trunk. > >Server A has this entry in iax.conf > >[serverb] >type=friend >host=serverbipaddress >trunk=yes >auth=md5,plaintext,rsa >secret=s3rv3rb >username=serverb >context=serverb >qualify=yes > >Server B doesnt have much in iax.conf - only codec and port information >under [general] > >Server B is using this in his extensions.conf though: > >exten => _X.,1,Dial,IAX2/serverb:s3rv3rb@serveraipaddress/${EXTEN}|180 > >now i know some things are wrong, i know i can use type=peer because its >only a one way connection (im not making calls to serverb, only recieving >calls from it) > >but when i do an iax2 trunk debug i get this: > >IAX2 Trunk Debug Requested >Beginning trunk processing >Processed trunk peer 'serverb' (0.0.0.0:0) with 0 call(s) >Ending trunk processing with 1 peers and 0 calls processed > >even though there are calls going between the servers - so obviously they >arent using the trunking facility. so whats the deal. what do i have to >do in iax.conf on both sides and in extensions.conf on the side of ServerBok, bad form to reply to my own posting, but in case anyone else has this problem in future it was a very silly setting. on server b i didnt need the entry in iax.conf - all i needed was a register statement. duncan