[Asterisk-Users] re: asterisk, SER and autocreatepeer

Yair Hakak yhakak at gmail.com
Wed Sep 8 02:04:59 MST 2004


Hi all,
quick question...i am using autocreatepeer to get asterisk to work with SER
without having to specify each UA in sip.conf and in ser separately.
2 questions:
1. obviously this is not very secure because anyone can bypass the SER
and register themselves as a peer with the asterisk. assuming i block
incoming requests on the port asterisk is running SIP on (excluding
requests from the SER, of course) does this adequately protect the
server from unauthorized users or
is there something else to do?
2. according to the wiki the autocreatepeer creates peers based on the
global variables. some variables, like dtmfmode, for example, are listed as
belonging to individual peers. if i set dtmfmode, or qualify, or any of the
others listed as individual variables, in [general] will the autocreatepeer
use them?

I suppose i could write a script to automatically generate peers for
asterisk from SER's DB, (along the lines of the current
retrieve_sip_conf_from_mysql.pl) but having duplicate SIP client entries
seems kind of inelegant.

And, of course, if i'm missing something basic conceptually, i'd be
grateful if someone could point that out to me as well.

any help is appreciated,
thanks-
yair



More information about the asterisk-users mailing list