<div dir="ltr">Hi all, <br> I need to specify two groups of peers who are on two sub networks, the case is as follows: <br>two groups of users (that are supposed to use the X-lite) group1 and group2, each group is on a sub network net1, and net2, respectively, each group has its own dial plan defined in the extension.conf, <br>
we have defined the peers in the sip.conf for both groups, and successfully made a call between two peers from the groups, but the idea is we need to prevent users from network1 to register as peers of group1, <br><br>I suppose this would be a configuration solution, but I am afraid that do know what are the right needed configurations:<br>
<br>here is definition of two peers each from different group: <br><br>[1010]<br>type=friend<br>host=dynamic<br>context=group1 <br>secret=pass<br>host=dynamic<br>callerid=TestAccount<1010><br>vm Extension=test 1010<br>
mailbox=1010@default <br>nat=yes<br><br>[2003]<br>type=friend<br>context=group2 <br>secret=pass<br>host=dynamic <br>callerid=Account<2003><br>vm Extension=test 2003<br>mailbox=2003@default<br>nat=yes <br><br>
each of group1 and group2 context are defined in the extension configuration as follows : <br>exten => _2XXX,1,Dial(SIP/${EXTEN})<br>exten => _2XXX,n,Playback(unavailable)<br>exten => _2XXX,n,Hangup()<br><br>exten => _1XXX,1,Dial(SIP/${EXTEN})<br>
exten => _1XXX,n,Playback(unavailable)<br>exten => _1XXX,n,Hangup()<br><br>in order the both groups can talk to each other, <br><br>currentlly users in network1 can register as peer 2003 which is supposed to be allowed just for users from network2 , although this registration is supposed to be failed, any suggestions plz!! <br>
<br>hope I made the scenario clear , any help would appreciated.<br>Thanks in advance.<br><br><br><br></div>