Hi everybody.
I have been searching and trying for an answer, but no luck, so here I go..
Is there anyway to execute multiple commands on a single priority in
extensions.conf?
eg:
exten => X.,1,Dial(SIP/1111) & somefunction(${EXTEN})
I need the dial command to dial internal extensions, and the
"somefunction" to
kick of our own outgoing system for redirection to outside lines; it has
to go through our system for billing purposes.
Hope someone can help.
Regards,
Jason
Use a Macro, or you could try the local channel On 3/21/06, Jason Frisch <jfrisch@tsukaeru.net> wrote:> Hi everybody. > > I have been searching and trying for an answer, but no luck, so here I go.. > > Is there anyway to execute multiple commands on a single priority in > extensions.conf? > > eg: > exten => X.,1,Dial(SIP/1111) & somefunction(${EXTEN}) > > I need the dial command to dial internal extensions, and the > "somefunction" to > kick of our own outgoing system for redirection to outside lines; it has > to go through our system for billing purposes. > > Hope someone can help. > > Regards, > > Jason > > _______________________________________________ > --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 want to dial an outgoing line as well as the SIP line?
Dial(SIP/1111&${OUTGOING}/${EXTEN}) ?
I can't say obviously without more info but it sounds to me like you are
looking for the wrong solution....
-Jonathan
> -----Original Message-----
> From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-
> bounces@lists.digium.com] On Behalf Of Jason Frisch
> Sent: Tuesday, March 21, 2006 11:45 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [Asterisk-Users] Multiple commands per priority
>
> Hi everybody.
>
> I have been searching and trying for an answer, but no luck, so here I
> go..
>
> Is there anyway to execute multiple commands on a single priority in
> extensions.conf?
>
> eg:
> exten => X.,1,Dial(SIP/1111) & somefunction(${EXTEN})
>
> I need the dial command to dial internal extensions, and the
> "somefunction" to
> kick of our own outgoing system for redirection to outside lines; it
has> to go through our system for billing purposes.
>
> Hope someone can help.
>
> Regards,
>
> Jason
>
> _______________________________________________
> --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