Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-25 Thread Dinesh Nair



On 03/24/06 07:39 Larry Alkoff said the following:
That's how I _thought_ it worked but extens in such a created 
[context_name] are not seen or used by Asterisk to dial out.


There is something missing.


have you included the new context in the context where your phones are set to ?

include = new_context

--
Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)http://www.alphaque.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo The opinions here in no way reflect the opinions of my $a $b.  |
| done; done  |
+=+
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-24 Thread Dovid Bender
because your phone is prob. set to a diffrent context

--- Larry Alkoff [EMAIL PROTECTED] wrote:

 Luigi Rizzo wrote:
  On Thu, Mar 23, 2006 at 01:18:15PM -0600, Larry
 Alkoff wrote:
  It _appears_ that the only way to create valid
 [context] is by a
  context = line in sip.conf.
 
  Is there another way to create a [new_context] in
 extensions.conf so I 
  can dial from it?
  
  manually with an editor ?
  or i don't understand the question.
 
 With an editor.  I've done that but extens = in the
 created [contexts] 
 are not seen or used by Asterisk so they won't dial
 out.
 
 Larry
 
 
 -- 
 Larry Alkoff N2LA - Austin TX
 Using Thunderbird on Slackware Linux
 ___
 --Bandwidth and Colocation provided by Easynews.com
 --
 
 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
   

http://lists.digium.com/mailman/listinfo/asterisk-users
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Larry Alkoff

It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so I 
can dial from it?


Right now most of my extens are in [default] and I'd like to avoid that.

Larry

--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Luigi Rizzo
On Thu, Mar 23, 2006 at 01:18:15PM -0600, Larry Alkoff wrote:
 It _appears_ that the only way to create valid [context] is by a
 context = line in sip.conf.
 
 Is there another way to create a [new_context] in extensions.conf so I 
 can dial from it?

manually with an editor ?
or i don't understand the question.

 Right now most of my extens are in [default] and I'd like to avoid that.
 
 Larry
 
 -- 
 Larry Alkoff N2LA - Austin TX
 Using Thunderbird on Slackware Linux
 ___
 --Bandwidth and Colocation provided by Easynews.com --
 
 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread BJ Weschke
On 3/23/06, Larry Alkoff [EMAIL PROTECTED] wrote:
 It _appears_ that the only way to create valid [context] is by a
 context = line in sip.conf.

 Is there another way to create a [new_context] in extensions.conf so I
 can dial from it?

 Right now most of my extens are in [default] and I'd like to avoid that.

 Larry


[newcontext]

exten = 1234,1,NoOp(this is an application in the context newcontext)

[default]

...

--
Bird's The Word Technologies, Inc.
http://www.btwtech.com/
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Aaron Daniel

Yes.

Just create a context that you want the phones to dial from in 
extensions.conf.


[context_name]
exten = 1234,1,Dial(SIP/1234)
exten = 1234,2,Hangup

Once you have that, just change the context = line to read context = 
context_name and the phone will use that context for outgoing calls :)


Aaron

On Thu, 23 Mar 2006, Larry Alkoff wrote:


It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so I can 
dial from it?


Right now most of my extens are in [default] and I'd like to avoid that.

Larry




--
Aaron Daniel
Computer Systems Technician
Sam Houston State University
[EMAIL PROTECTED]
(936) 294-4198
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Wai Wu
Just go the end of extensions.conf and add in the line [new_context].
That's how I have been doing it. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry
Alkoff
Sent: Thursday, March 23, 2006 2:18 PM
To: Asterisk-users
Subject: [Asterisk-Users] How to create [new_context] in
extensions.conf?

It _appears_ that the only way to create valid [context] is by a context
= line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so I
can dial from it?

Right now most of my extens are in [default] and I'd like to avoid that.

Larry

--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Jerry Jones

You need to create [new_context] in extensions.conf

then add the context=new_context to sip.conf so calls from from the  
sip devices know which context to use. this can be in the general  
section and apply to all sip devices, or add per device and each can  
have its own context


just adding to sip.conf will not result in a call


On Mar 23, 2006, at 1:18 PM, Larry Alkoff wrote:


It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf  
so I can dial from it?


Right now most of my extens are in [default] and I'd like to avoid  
that.


Larry

--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread C F
Yes, you just create it.

On 3/23/06, Larry Alkoff [EMAIL PROTECTED] wrote:
 It _appears_ that the only way to create valid [context] is by a
 context = line in sip.conf.

 Is there another way to create a [new_context] in extensions.conf so I
 can dial from it?

 Right now most of my extens are in [default] and I'd like to avoid that.

 Larry

 --
 Larry Alkoff N2LA - Austin TX
 Using Thunderbird on Slackware Linux
 ___
 --Bandwidth and Colocation provided by Easynews.com --

 Asterisk-Users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Larry Alkoff

Luigi Rizzo wrote:

On Thu, Mar 23, 2006 at 01:18:15PM -0600, Larry Alkoff wrote:

It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so I 
can dial from it?


manually with an editor ?
or i don't understand the question.


With an editor.  I've done that but extens = in the created [contexts] 
are not seen or used by Asterisk so they won't dial out.


Larry


--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Larry Alkoff

BJ Weschke wrote:

On 3/23/06, Larry Alkoff [EMAIL PROTECTED] wrote:

It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so I
can dial from it?

Right now most of my extens are in [default] and I'd like to avoid that.

Larry



[newcontext]

exten = 1234,1,NoOp(this is an application in the context newcontext)

[default]



I've created such with an editor but such extensions are not being seen 
or used by Asterisk so won't dial out.


The same exten would dial out with no problem in [default].

Larry


--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Larry Alkoff
That's how I _thought_ it worked but extens in such a created 
[context_name] are not seen or used by Asterisk to dial out.


There is something missing.

Larry

Aaron Daniel wrote:

Yes.

Just create a context that you want the phones to dial from in 
extensions.conf.


[context_name]
exten = 1234,1,Dial(SIP/1234)
exten = 1234,2,Hangup

Once you have that, just change the context = line to read context = 
context_name and the phone will use that context for outgoing calls :)


Aaron

On Thu, 23 Mar 2006, Larry Alkoff wrote:


It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so I 
can dial from it?


Right now most of my extens are in [default] and I'd like to avoid that.

Larry







--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Larry Alkoff

I've tried adding [new_context] with extens defined in extensions.conf
but they are not recognized or dialed out.

Are you saying I can add various
context=new_context1
context=new_context2
etc
lines in sip.conf [general] and that's all there is to it?

I'm not sure what you mean about per device in sip.conf.
Are you talking about a [users] context?  Another thing I don't 
understand about.


Larry



Jerry Jones wrote:

You need to create [new_context] in extensions.conf


then add the context=new_context to sip.conf so calls from from the sip 
devices know which context to use. this can be in the general section 
and apply to all sip devices, or add per device and each can have its 
own context


just adding to sip.conf will not result in a call


On Mar 23, 2006, at 1:18 PM, Larry Alkoff wrote:


It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so I 
can dial from it?


Right now most of my extens are in [default] and I'd like to avoid that.

Larry

--Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users




--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Larry Alkoff

What do I have to do to dial an exten - with the dial command in it?
Asterisk isn't recognizing commands in my newly created [context].

Larry


C F wrote:

Yes, you just create it.

On 3/23/06, Larry Alkoff [EMAIL PROTECTED] wrote:

It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so I
can dial from it?

Right now most of my extens are in [default] and I'd like to avoid that.

Larry

--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Aaron Daniel
Did you reload the dialplan in the CLI?  I think it's extensions reload. 
That'll refresh your settings... If that doesn't work, post your dialplan 
so we can see what's going on :)


Aaron

On Thu, 23 Mar 2006, Larry Alkoff wrote:

That's how I _thought_ it worked but extens in such a created [context_name] 
are not seen or used by Asterisk to dial out.


There is something missing.

Larry

Aaron Daniel wrote:

Yes.

Just create a context that you want the phones to dial from in 
extensions.conf.


[context_name]
exten = 1234,1,Dial(SIP/1234)
exten = 1234,2,Hangup

Once you have that, just change the context = line to read context = 
context_name and the phone will use that context for outgoing calls :)


Aaron

On Thu, 23 Mar 2006, Larry Alkoff wrote:


It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so I can 
dial from it?


Right now most of my extens are in [default] and I'd like to avoid that.

Larry










--
Aaron Daniel
Computer Systems Technician
Sam Houston State University
[EMAIL PROTECTED]
(936) 294-4198
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Hadley Rich
On Friday 24 March 2006 12:53, Larry Alkoff wrote:
 What do I have to do to dial an exten - with the dial command in it?
 Asterisk isn't recognizing commands in my newly created [context].

There is a really good book available here[1] that will answer this and a lot 
of other questions easily and quickly for you.

[1]http://www.asteriskdocs.org/modules/tinycontent/index.php?id=11

hads

-- 
TeX is potentially the most significant invention in typesetting in this
century.  It introduces a standard language for computer typography, and in
terms of importance could rank near the introduction of the Gutenberg press.
-- Gordon Bell
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Leo Ann Boon

Larry Alkoff wrote:


What do I have to do to dial an exten - with the dial command in it?
Asterisk isn't recognizing commands in my newly created [context].


You must send the call into the context. That can be done in the 
following ways:

a. Device context - e.g. in your sip.conf. You have something like:
[myuser]
context=mycontext

When you register your sip phone with the myuser account, it will be 
placed into [mycontext]. When you dial from that phone, you can only 
reach the extensions in [mycontext] (and its included contexts). E.g.


[mycontext]
exten = 900,1,Playback(demo-echotest)  ; Let them know what's going on
exten = 900,n,Echo ; Do the echo test
exten = 900,n,Playback(demo-echodone)  ; Let them know it's over
exten = 900,n,Goto(s,6); Start over

In this example, myuser can only call 900 which is in it's context.

b. By including the context in another context. E.g, to make 
[EMAIL PROTECTED] available to [default] context:

[default]
include = mycontext

This will allow any device in the [default] context to reach 900, as if 
it's part of the [default] context.


c. By using Goto. Eg. to simulate the example in b. without the include 
syntax.


[default]
exten = 900,Goto(mycontext, 900, 1)

d. It's also possible use the Dial string for IAX2 to dial directly into 
a context. See the example from the sample extensions.conf:

exten = 500,n,Dial(IAX2/[EMAIL PROTECTED]/[EMAIL PROTECTED])

Hope this helps.

Leo

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Larry Alkoff

Yes I reload each time.
Larry

Aaron Daniel wrote:
Did you reload the dialplan in the CLI?  I think it's extensions reload. 
That'll refresh your settings... If that doesn't work, post your 
dialplan so we can see what's going on :)


Aaron

On Thu, 23 Mar 2006, Larry Alkoff wrote:

That's how I _thought_ it worked but extens in such a created 
[context_name] are not seen or used by Asterisk to dial out.


There is something missing.

Larry

Aaron Daniel wrote:

Yes.

Just create a context that you want the phones to dial from in 
extensions.conf.


[context_name]
exten = 1234,1,Dial(SIP/1234)
exten = 1234,2,Hangup

Once you have that, just change the context = line to read context = 
context_name and the phone will use that context for outgoing calls :)


Aaron

On Thu, 23 Mar 2006, Larry Alkoff wrote:


It _appears_ that the only way to create valid [context] is by a
context = line in sip.conf.

Is there another way to create a [new_context] in extensions.conf so 
I can dial from it?


Right now most of my extens are in [default] and I'd like to avoid 
that.


Larry













--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to create [new_context] in extensions.conf?

2006-03-23 Thread Larry Alkoff

Hadley Rich wrote:

On Friday 24 March 2006 12:53, Larry Alkoff wrote:

What do I have to do to dial an exten - with the dial command in it?
Asterisk isn't recognizing commands in my newly created [context].


There is a really good book available here[1] that will answer this and a lot 
of other questions easily and quickly for you.


[1]http://www.asteriskdocs.org/modules/tinycontent/index.php?id=11

hads




Heck I sleep with it g

--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users