{"id":257,"date":"2009-10-27T19:51:10","date_gmt":"2009-10-27T18:51:10","guid":{"rendered":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/?p=257"},"modified":"2010-01-27T11:53:45","modified_gmt":"2010-01-27T10:53:45","slug":"trunking-calls-between-asterisk-servers-with-iax2","status":"publish","type":"post","link":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/2009\/10\/27\/trunking-calls-between-asterisk-servers-with-iax2\/","title":{"rendered":"Trunking calls between Asterisk servers with IAX2."},"content":{"rendered":"
\"Trevor<\/a>

Trevor testing a pair of Asterisk servers<\/p><\/div>\n

At the end of last week we managed to create an IAX<\/a> to IAX trunk between 2 asterisk servers<\/a> on the local wired LAN. IAX trunking is a way to connect multiple Asterisk servers and allow clients of different servers to place calls to each other.There are two Asterisk configuration files that need changing to make this possible – the definitions of other iax servers to communicate with in \/etc\/asterisk\/iax.conf and amending the dialplan to direct calls to clients of remote asterisk servers in \/etc.asterisk\/extensions.conf. In our case, we defined two Asterisk servers – beach<\/strong> and base<\/strong>, and commanded each of them to contact the other by IP address and set up a trunk using the default iax2 port\u00a0 4569 <\/a>– all this happens in iax.conf . In the dialplan file extensions.conf , we re-arranged the phone extension numbers for users era1<\/strong> to era8<\/strong> so that they would register with the beach<\/strong> Asterisk server along with the MeetMe conference location 1234. Phone extensions era8<\/strong> and era9<\/strong> were both defined as registered with Asterisk server base<\/strong>. In the beach<\/strong> dialplan, calls to extensions registered at the base<\/strong> Asterisk server were told to route through server base<\/strong> using iax2, and vice versa.\u00a0 Calls placed by a beach<\/strong> user to another beach<\/strong> user were connected using SIP as before.
\nThis is a little complex to describe, but perhaps following the output of the base<\/strong> server in
this graphic<\/a> will help:
\nAt the top line there’s a call being made between a SIP client of base<\/strong> and era2<\/strong> (phone number 2222), which (in line 2 of the output) is accepted by the beach<\/strong> server which has era2<\/strong>‘s registration, a common codec is agreed to be Speex in line 3 and the softphone at era2<\/strong> rings (line 4) and is answered (line 6).<\/p>\n","protected":false},"excerpt":{"rendered":"

At the end of last week we managed to create an IAX to IAX trunk between 2 asterisk servers on the local wired LAN. IAX trunking is a way to connect multiple Asterisk servers and allow clients of different servers to place calls to each other.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,5],"tags":[32,33,3,29,23,24,30,54,11,31],"_links":{"self":[{"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/posts\/257"}],"collection":[{"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/comments?post=257"}],"version-history":[{"count":10,"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/posts\/257\/revisions"}],"predecessor-version":[{"id":413,"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/posts\/257\/revisions\/413"}],"wp:attachment":[{"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/media?parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/categories?post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/projects.kmi.open.ac.uk\/era\/vowlan\/wp-json\/wp\/v2\/tags?post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}