search for: afterdi

Displaying 3 results from an estimated 3 matches for "afterdi".

Did you mean: afteri
2009 May 20
1
Macro with DIALSTATUS
Hi, I am trying to pass DIALSTATUS to a Macro so that i can set a variable when a call is placed (call is placed via a call file to another extension first). Basically i don't want to dial a number where a call is already bridged and thats why i am setting a variable. [macro-afterdial]; exten => s,1,Goto(s-${ARG1},1) exten => s-ANSWER,1,SetGlobalVar(NUM${ARG2} = "ACTIVE") exten => 30,3,Dial(SIP/provider/${num}|15|gM(afterdial^${DIALSTATUS}^1)) exten => 30,4,SetGlobalVar(NUM1 = "foo") Asterisk execute the Macro but on the cli i can see, but di...
2019 Feb 20
3
branching in extensions.conf?
Is there any less cumbersome way of doing conditionalized/branching in extensions.conf other than something like: exten => s,n,GotoIf($["${SIP}" = "PJSIP" ]?pjsip) exten => s,n,Dial(${ARG2},20,TtWw) exten => s,n,Goto(afterdial) exten => s,n(pjsip),Dial(${PJSIP_DIAL_CONTACTS(${STRREPLACE(ARG2,"PJSIP/","")})},20,TtWw) exten => s,n(afterdial),Goto(s-${DIALSTATUS},1) Granted the particular above example could probably be better written to simply modify $ARG2 based on ${SIP} rather than having two...
2009 Jun 03
1
Using DIALSTATUS question
Hi all, I am trying to make decisions in my dialplan based on {DIALSTATUS}. I am creating calls using AMI (rawman with parameters via URL) with action:Originate. I am using SIP and an outside voip provider for the calls. If I define the number to call in the Channel parameter (e.g. SIP/15555555555 at myvoipprovider, the call gets placed before entering the context that I defined. I understand