* You are viewing Posts Tagged ‘NoOp’

Gotoif changed in 1.8?

Hi Gang,

I’m testing 1.8.0 on one of my machines and this snippet
“chokes” on line 7 (works fine with 1.4.30)

[tb-account-balance]

exten => s,1,Set(BALCOUNT=0)

exten => s,n,NoOp(Verbose(acct ${digitacc} pwd ${digitpwd} ))

exten => s,n(runagi),Set(TEST_RETURN=”NONE”)

exten =>
s,n,AGI(acctbal.agi,${ABA},${digitacc},${digittype},${digitport},${CHANNEL(l
anguage)},${outtype})

exten => s,n,NoOp(Verbose(bal AGI RETURNED ${TEST_RETURN} ))

exten => s,n,Set(BALCOUNT=$[${BALCOUNT} + 1])

exten => s,n,Gotoif($[${BALCOUNT} > 3]?tb-account-balance,s,reset_bc)

exten => s,n,Gotoif($["${TEST_RETURN}" = "OK"]?tb-account-balance,s,ok)

exten => s,n,Gotoif($["${TEST_RETURN}" = "NONE"]?tbstart,s,play-main)

exten => s,n,Gotoif($["${TEST_RETURN}" = "INVACCT"]?tbstart,s,readacct)

exten => s,n(invacct),Playback(${invacct})

exten => s,n,Goto(tb-account-balance,s,runagi)

exten => s,n(ok),Set(BALCOUNT=0)

2 step dialing

Hello all,

We’re trying to build a small IVR application to allow callers to use the
Asterisk for outgoing calls in a 2 steps dialing mode.

The context for outgoing calls is called “outgoing” (we have there an LCR
and routing mechanism we want to use, depending on the destination).

This is what we did, but it doesn’t work:
exten => _X., 13, Read(ccdest,vm-enter-num-to-call,,,2)
exten => _X., 14, NoOp($ccdest)
exten => _X., 15, Dial(Local/$ccdest@outgoing,50)

The error we get is:
chan_local.c:538 local_call: No such extension/context
$ccdest@outgoingwhile calling Local channel

Passing variables into macros?

Hi,I cannot get this to work..I have two application maps that call these two macro’s…transfer is done on sip phone and transfer2 is done on the incoming dahdi line….thats all working….but the value stored in dtmf12 is never passed into the second macro so I get ” ” in the NoOp..

So how exactly can I do this…global variable,setGlobalVar,import etc..tried a few combos but they dont seem to work as I think they should?

this is in etensions_custom.. have no Global variable in this config..

[macro-transfer]
;performed on callerexten => s,1,Read(dtmf12,,5,,2,10)exten => s,n,NoOp(${dtmf12} [macro-transfer2]
;performed on callee
exten => s,1,Flash()exten => s,n,NoOp(${dtmf12} exten => s,n,SendDTMF($dtmf12})exten => s,n,Hangup
ThanksJames

Receive Call from unknown user

Hello List,

I have noticed for the past few weeks that someone from an unknown IP is
trying to make a call to my Asterisk box, below is the sample content of the
log file. Sometimes the calls are being made every seconds.

Is my system being hack by someone?

Oct 12 09:41:47] VERBOSE[3114] netsock.c: == Using SIP VRTP CoS mark 6
[Oct 12 09:41:47] VERBOSE[21627] pbx.c: — Executing
[99541442073479999@from-sip-external:1] NoOp(“SIP/113.105.153.251-00000265″,
“Received incoming SIP connection from unknown peer to 99541442073479999″)
in new stack
[Oct 12 09:41:47] VERBOSE[21627] pbx.c: — Executing
[99541442073479999@from-sip-external:2] Set(“SIP/113.105.153.251-00000265″,
“DID=99541442073479999″) in new stack
[Oct 12 09:41:47] VERBOSE[21627] pbx.c: — Executing
[99541442073479999@from-sip-external:3] Goto(“SIP/113.105.153.251-00000265″,
“s,1″) in new stack
[Oct 12 09:41:47] VERBOSE[21627] pbx.c: — Goto (from-sip-external,s,1)
[Oct 12 09:41:47] VERBOSE[21627] pbx.c: — Executing [s@from-sip-external:1]
GotoIf(“SIP/113.105.153.251-00000265″, “0?checklang:noanonymous”) in new
stack
[Oct 12 09:41:47] VERBOSE[21627] pbx.c: — Goto (from-sip-external,s,5)
[Oct 12 09:41:47] VERBOSE[21627] pbx.c: — Executing [s@from-sip-external:5]
Set(“SIP/113.105.153.251-00000265″, “TIMEOUT(absolute)=15″) in new stack
[Oct 12 09:41:47] VERBOSE[21627] func_timeout.c: Channel will hangup at
2010-10-12 09:42:02.042 PHT.
[Oct 12 09:41:47] VERBOSE[21627] pbx.c: — Executing [s@from-sip-external:6]
Answer(“SIP/113.105.153.251-00000265″, “”) in new stack

Please Advise.

Malvin

3xx redirect response list Noop and capture

Hi,

I Just setup asterisk to send SIP calls to a SIP redirect server that
response back with a list of destinations, if the first destination is
not able to terminate the call, asterisk does not try the second , it
just hang up.

How can I Noop and capture the list inside the 3xx response?, for
storing it and then by using Dial status, I will be able of failover
through that list and hang-up only after trying the whole list.

This is the approach I figured, but I gladly accept any other
suggestion.

Thanks in advance.

Adrian