OpenBTS The use of autocreatepeer=yesThere seem to be ready to go solution for autoregistration available
within Asterisk. Just add "autocreatepeer=yes" to the general part with
some extra lines to /etc/asterisk/sip.conf and it is working ok! See http://www.voip-info.org/wiki/page_history.php?page_id=685 [general] allowoverlap=no ; Disable overlap dialing support. (Default is yes) bindport=5060 ; UDP Port to bind to (SIP standard port is 5060) bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all) srvlookup=yes ; Enable DNS SRV lookups on outbound calls ; lines for automatic sim registration autocreatepeer=yes canreinvite=no call-limit=1 type=friend allow=gsm context=sip-internal host=127.0.0.1 ; the assumption is that OpenBts and Asterisk bth run on the same machine This [general] part is from a working system. Originally the autocreatepeer=yes is mend for the scenario where a dedicated registrar like kamailio/openser is in front of Asterisk and Asterisk can accept any request for registring a peer because the authentication already took place. In combination with the hotdesk routine I added to the wiki this is actually working great. Be aware of the fact that the context "sip-internal" has to be part
of your dialplan or you have to adjust this line in sip.conf so the Be aware of the legal framework you have to comply to. What is explained might not be allowed in your country. Don't end up in jail or spending vacation money on penalties! \Erik 注:OpenBTS The use of autocreatepeer=yes(原文出处,翻译整理仅供参考!) |