<div dir="ltr"><div><div><div><div>i would like to ask how to connect 2 systems. I would like to have an asterisk where it will have all the connections to the outside world (sip trunks) and it will called the gateway. This asterisk will have extension numbers of 3XX.<br></div>In the LAN there will be 2 other asterisk boxes (A & B) where A will have the extension numbers 4XX and B the 5XX.<br></div><div>-gateway 3XX has all sip trunks to the outside world<br></div><div>-A 4XX. <br></div><div>-B 5XX<br></div><div><br></div>I would like to have A to connect to the gateway as extension 308 and route all calls incoming/outgoing through the gateway. the same applies to B as extension 309.<br></div>i am kinda lost with config and the dialplan. In the gateway i have in the sip.conf 2extensions 308 &309. in the gateway's extension.conf i have 5 DIDs for 308 and another 5 for 309 as follows:<br><br></div>308's first DID up to 123456784<br><div>exten => 123456780,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})<br>exten =>
123456780,n,Answer()<br>exten =>
123456780,n,Wait(1)<br>exten =>
123456780,n,Dial(SIP/308,20)<br>exten =>
123456780,n,VoiceMail(308@home,u)<br>exten =>
123456780,n,Busy(3) <br><br><br><br><br><br>
309's first DID up to 123456789<br><div>exten => 123456785,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})<br>exten =>
123456785,n,Answer()<br>exten =>
123456785,n,Wait(1)<br>exten =>
123456785,n,Dial(SIP/309,20)<br>exten =>
123456785,n,VoiceMail(309@home,u)<br>exten =>
123456785,n,Busy(3) <br><br><br></div>
<br></div><div>Some help please?<br></div><div>John<br></div></div>