On Aug 10, 2009, at 9:52 AM, harry R wrote: > > > Anyone know how to use regcontext et regexten parameter from > sip.conf > > and can give an example ? > > Sure... let's say I have a phone with the following configuration in > sip.conf: > > [myphone] > type=friend > context=inside > host=dynamic ; phone will register w/ Asterisk > secret=mysecret > regcontext=some-context > regexten=6123 > > Thank Jared. > > So I have one more and last question about regcontext. > Where do asterisk create context "some-context" ? > I see context by taping "dialplan show some-context" in CLI but I > dont know in which config file it's created. >
Harry, The context is created in the running dialplan. It's not stored in a configuration file. You can however create this context in extensions.conf or extensions.ael and asterisk will use that. Basically how it works is: On a sip register asterisk checks if the regcontext exists. if not it will create it, if it exists asterisk will add the regexten to it. Michiel _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users