Before an IP Phones can be registered to an Asterisk server, the extension for it must be configured in Asterisk. Usually, Asterisk adminintor must add the extension by hand. Is there any library, API to do this by software??? For example, i want to develope a software that add new extensions to Asterisk system, sothat, any IP Phones can use that extensions to establish a call. I'm digging on Asterisk-Java but this library seems not support this. Anybody has dealed with this before ?? Phan Anh Vu DT12.K49.HUT RDLab ( C9.410 ) HUT --------------------------------- Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070908/c93982a6/attachment.htm
You can use asterisk realtime which can read sip config from database ( mysql/pgsql) . Your application can just write info to database and asterisk will read it and make peers . You can also include a custom config file within sip.conf and make your application write peer settings to that file and reload asterisk by using asterisk management interface . On 08/09/2007, phananhvu <virces931511 at yahoo.com> wrote:> > Before an IP Phones can be registered to an Asterisk server, the extension > for it must be configured in Asterisk. Usually, Asterisk adminintor must add > the extension by hand. Is there any library, API to do this by software??? > > For example, i want to develope a software that add new extensions to > Asterisk system, sothat, any IP Phones can use that extensions to establish > a call. > > > I'm digging on Asterisk-Java but this library seems not support this. > > Anybody has dealed with this before ?? > > > Phan Anh Vu > DT12.K49.HUT > RDLab ( C9.410 ) HUT > > ------------------------------ > Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge > <http://us.rd.yahoo.com/evt=47093/*http://tv.yahoo.com/collections/222>to > see what's on, when. > > > _______________________________________________ > > Sign up now for AstriCon 2007! September 25-28th. > http://www.astricon.net/ > > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070908/391e99df/attachment.htm
On Sat, Sep 08, 2007 at 12:58:44AM -0700, phananhvu wrote:> Before an IP Phones can be registered to an Asterisk server, the > extension for it must be configured in Asterisk. Usually, Asterisk > adminintor must add the extension by hand. Is there any library, > API to do this by software??? > > For example, i want to develope a software that add new extensions > to Asterisk system, sothat, any IP Phones can use that extensions > to establish a call.Any IP phone? What do you mean? If you just want to allow the IP phone to call out, it is very simple - place them all under the same user (or even as guests). If you also need to be able to call *to* them then you really have to decide how you identify them. Do you want to establish some "sign-in" process? First-off, Asterisk does not really have a concept of "extension" internally. Unless you use the users.conf hack and make sure it doesn't break. The manager interface (as of 1.4) allows you to change configuration files on the Asterisk server. Alternatively your interface can rewite files itself, or take some or all information from an external storage (real-time / static real-time). -- Tzafrir Cohen icq#16849755 jabber:tzafrir at jabber.org +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Thank you both of you Jaswinder Singh, Tzafrir Cohen. Though your guides don't directly solve my main problem but it gave me "the light from the end of the tunnel". So now i can deal with my headache problem. I have 2 choices: (1) Use Realtime (2) Inclue configure file Thanks again to you and good luck. Phan Anh Vu DT12.K49.HUT RDLab ( C9.410 ) HUT --------------------------------- Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070908/63aca022/attachment.htm