[asterisk-users] sip configuration masking the peers

peace keeper peacekeeperaccount at gmail.com
Wed Jul 22 03:44:22 CDT 2009


Hi all,
     I need to specify two groups of peers who are on two sub networks, the
case is as follows:
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,
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,

I suppose this would be a configuration solution, but I am afraid that do
know what are the right needed configurations:

here is definition of two peers each from different group:

[1010]
type=friend
host=dynamic
context=group1
secret=pass
host=dynamic
callerid=TestAccount<1010>
vm Extension=test 1010
mailbox=1010 at default
nat=yes

[2003]
type=friend
context=group2
secret=pass
host=dynamic
callerid=Account<2003>
vm Extension=test 2003
mailbox=2003 at default
nat=yes

each of group1 and group2 context are defined in the extension configuration
as follows :
exten => _2XXX,1,Dial(SIP/${EXTEN})
exten => _2XXX,n,Playback(unavailable)
exten => _2XXX,n,Hangup()

exten => _1XXX,1,Dial(SIP/${EXTEN})
exten => _1XXX,n,Playback(unavailable)
exten => _1XXX,n,Hangup()

in order the both groups can talk to each other,

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!!

hope I made the scenario clear , any help would appreciated.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090722/f1373f25/attachment.htm 


More information about the asterisk-users mailing list