Hi,
Does anyone know if there is a way to have a sip or iax inbound call dial an
extension automatically, sort of like the "immediate" option for a zap
channel?
Thx.
----- Original Message -----
From: <niels@wxn.nl>
To: <asterisk-users@lists.digium.com>
Sent: Tuesday, October 26, 2004 5:04 PM
Subject: [Asterisk-Users] Can contexts have wildcards too?
In my sip.conf or iax.conf I like to set a user or friend to the
following context
[User0001]
context=outbound0001
[User0002]
context=outbound0002
Then I extensions I would like to capture this with only one context,
doing something with the last 4 digits
I mean something like this:
[outbound.]
Exten => _.,1,Dial(SIP/${CONTEXT:8})
Or
[outboundXXXX]
Exten => _.,1,Dial(SIP/${CONTEXT:8})
Is this possible?
Or, are there any other possibilities to send some digits to the context
from within sip.conf or iax.conf?
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
In my sip.conf or iax.conf I like to set a user or friend to the
following context
[User0001]
context=outbound0001
[User0002]
context=outbound0002
Then I extensions I would like to capture this with only one context,
doing something with the last 4 digits
I mean something like this:
[outbound.]
Exten => _.,1,Dial(SIP/${CONTEXT:8})
Or
[outboundXXXX]
Exten => _.,1,Dial(SIP/${CONTEXT:8})
Is this possible?
Or, are there any other possibilities to send some digits to the context
from within sip.conf or iax.conf?
Use Goto(context, extension, priority). So, for instance: [sip-inbound] whatever-extension-used-inbound => Goto(other-context, other-extension, 1) Hope that helps. On Oct 25, 2004, at 11:34 AM, spkao wrote:> Hi, > > Does anyone know if there is a way to have a sip or iax inbound call > dial an > extension automatically, sort of like the "immediate" option for a zap > channel? > > Thx. > ----- Original Message ----- > From: <niels@wxn.nl> > To: <asterisk-users@lists.digium.com> > Sent: Tuesday, October 26, 2004 5:04 PM > Subject: [Asterisk-Users] Can contexts have wildcards too? > > > > In my sip.conf or iax.conf I like to set a user or friend to the > following context > > [User0001] > context=outbound0001 > > [User0002] > context=outbound0002 > > Then I extensions I would like to capture this with only one context, > doing something with the last 4 digits > > I mean something like this: > > [outbound.] > Exten => _.,1,Dial(SIP/${CONTEXT:8}) > > Or > > [outboundXXXX] > Exten => _.,1,Dial(SIP/${CONTEXT:8}) > > > > Is this possible? > > Or, are there any other possibilities to send some digits to the > context > from within sip.conf or iax.conf? > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Hi Chad, Thx for the heads up. I am using sip client configuration and there is no register statement in iax.conf. Is there a "extension=xxx" statement that one can include in the sip user definition section? PK ----- Original Message ----- From: "Chad Scott" <chad@idworld.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Tuesday, October 26, 2004 11:21 PM Subject: Re: [Asterisk-Users] channel configuration> Use Goto(context, extension, priority). > > So, for instance: > > [sip-inbound] > whatever-extension-used-inbound => Goto(other-context, other-extension, > 1) > > Hope that helps. > > On Oct 25, 2004, at 11:34 AM, spkao wrote: > > > Hi, > > > > Does anyone know if there is a way to have a sip or iax inbound call > > dial an > > extension automatically, sort of like the "immediate" option for a zap > > channel? > > > > Thx. > > ----- Original Message ----- > > From: <niels@wxn.nl> > > To: <asterisk-users@lists.digium.com> > > Sent: Tuesday, October 26, 2004 5:04 PM > > Subject: [Asterisk-Users] Can contexts have wildcards too? > > > > > > > > In my sip.conf or iax.conf I like to set a user or friend to the > > following context > > > > [User0001] > > context=outbound0001 > > > > [User0002] > > context=outbound0002 > > > > Then I extensions I would like to capture this with only one context, > > doing something with the last 4 digits > > > > I mean something like this: > > > > [outbound.] > > Exten => _.,1,Dial(SIP/${CONTEXT:8}) > > > > Or > > > > [outboundXXXX] > > Exten => _.,1,Dial(SIP/${CONTEXT:8}) > > > > > > > > Is this possible? > > > > Or, are there any other possibilities to send some digits to the > > context > > from within sip.conf or iax.conf? > > > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users