* You are viewing Posts Tagged ‘NoOp’

Problems using Background within a macro on V 1.4

Hi List

I have had a look at the various posts on this and seem to be more confused
than ever – but then again that’s not hard ;-)

I am using Version 1.4.33.1 build from the Debian “lenny” distros

I am trying to implement a simple screening

[macro-screen]
exten => s,1,Background(press1)
exten => s,n,WaitExten(5)
exten => 1,1,NoOp(accepted) ; Dont set a reply so dial connects
exten => i,1,Set(MACRO_RESULT=CONTINUE)
exten => t,1,Set(MACRO_RESULT=CONTINUE)

[test]
exten => _1234,1,Dial(SIP/2001,10,M(screen))
exten => _1234,n,playback(sorry,noanswer)

This config plays to the caller “sorry” if I don’t answer SIP/2001 – good
and if I answer SIP/2001 but don’t press ANY key (so timeout) the caller
gets the sorry message – again good.

The problem I have is that the call gets connected whatever key I press -
not just the “1″ key.

I have seen various posts about using background within macros e.g.
http://www.voip-info.org/wiki/view/Asterisk+cmd+BackGround

but changing the macro to

[macro-screen]
exten => s,1,Background(press1,,screen)
….

or – I am not clear what the name should be

[macro-screen]
exten => s,1,Background(press1,,macro-screen)
….

just produces the same result – If I can get this working it will be part of
a bigger dialplan for which the followme app is not suitable hence the back
to basics

can anybody point me in the right direction – pleeese :-)

Paddy

Issue with Asterisk not hanging up second leg when first leg hangs up

Hi,

Here is my confing:

[out]
Exten => _X.,1,Noop()
Exten => _X.,2,Dial(SIP/${EXTEN}@peer,60,gcU(do_dtmf_cc-take-call,s,1))
Exten => _X.,3,Playback(tt-monkeys)
Exten => _X.,4,Playback(tt-monkeys)
Exten => _X.,5,Playback(tt-monkeys)

Exten => h,1,Noop(ABCDEFGHIJKLMNOPQRSTUVWXYZ)

[do_dtmf_cc-take-call]
Exten => s,1,AGI(agi://127.0.0.1:4579/update_call_status?status=60)
Exten => s,2,Noop()
Exten => s,3,Noop()
Exten => s,4,Noop()
Exten => s,5,Background(/etc/cb/wav/incoming_cb_call)
Exten => s,6,Noop()
Exten => s,7,Goto(s,5)

Exten => _X,1,AGI(agi://127.0.0.1:4579/update_call_status?status=80)

SIP Phone makes the call and calls an out side number. When out side number
picks up they hear the DTMF and then a message telling them to press any key
to take the call. If the called party press’s DTMF then the call is bridged
and everything is fine.

If the system is playing to the called party the message to press any key
(Exten => s,5,Background(/etc/cb/wav/incoming_cb_call)) and the caller hangs
up, the called party will keep hearing the message. If they hang up then
both legs hang up. If the called party presses any key then the call hangs
up. If the caller hangs up shouldnt it hang up the second leg of the call as
well ? Whats interesting is that when the caller hangs up Asterisk see’s the
BYE and replies it with a 200 OK yet it does not go to the h extension till
the second leg hangs up.

TIA.

Dovid

ReceiveFAX issue.

I am testing out inbound faxing using res_fax and res_fax_spandsp.so

My system answers the call but then sets there on the ReseiveFax line then
comes back with an error that it exceeded the maximum retries.
How would I go about debugging this? Below is my very simple dialplan code
I am using, and the fax show version gives the following as well.

FAX For Asterisk Components:
Applications: SVN-branch-1.8-r297535M
Spandsp FAX Driver: 20110122 075024

[fax_inbound]
exten => ProcessFax,1,Answer()
exten => ProcessFax,n,Wait(2)
exten =>
ProcessFax,n,Set(TIFF=/var/spool/fax_in/fax_${STRFTIME(,,%Y%m%d-%H%M)}_${RAN
D(1)}.tiff)
exten => ProcessFax,n,ReceiveFAX(${TIFF},d)
exten => ProcessFax,n,NoOp(Error = ${FAXOPT(error)})
exten => ProcessFax,n,NoOp(Status = ${FAXOPT(status)})
exten => ProcessFax,n,NoOp(Header = ${FAXOPT(headerinfo)})
exten => ProcessFax,n,NoOp(RemoteID = ${FAXOPT(remotestationid)})
exten => ProcessFax,n,NoOp(Result = ${FAXOPT(statusstr)})

I can’t figure out how to turn on any debuging for this nor can I
understand why this should be failing. I am using the spandsp version that
Steve recommended (0.0.6pre18)

Any ideas or feedback would be appreciated.

Thanks

Bryant Zimmerman (ZK Tech Inc.)

Go from CALLINGout to just CALLING

Hello list,

how can I go from CALLINGout to just CALLING ?

I’ve tried :

exten => s,n,Set(newVAR=${CUT(CALLINGout,,3)})
or
exten => s,n,Set(newVAR=$[CUT(CALLINGout,,3)])

But no result :

[Jan 4 11:10:12] — Executing [s@from-S:34] NoOp(“SIP/s2-0000003b”,
“newVAR=”) in new stack

Asterisk 1.6.10 here.

Kind regards,
Jonas.

Asterisk 1.8 Realtime Queue not working

I have configured my mysql database by following this link
http://www.voip-info.org/wiki/view/Asterisk+RealTime+Queue
The only difference is that I am using ODBC instead of MySQL with Realtime.

Within extensions.conf I have the following for my queue

exten => 9**2**1611,1,Answer
exten => 9**2**1611,2,Queue(irock.com,tT,,,300)

exten => *50,1,Answer
exten => *50,n,Macro(queue-login,${EXTEN},${EXTEN:0:4})
exten => *50,n,Hangup

exten => *51,1,Answer
exten => *51,n,Macro(queue-logout,${EXTEN},${EXTEN:0:4})
exten => *51,n,Hangup

[macro-queue-login]
exten => s,1,Set(agent=${EXTEN:4})
exten => s,n,Set(queue=irock.com)
exten => s,n,NoOp(Queue login agent ${EXTEN:4} to queue ${phone});
exten => s,n,AddQueueMember(${queue});
exten => s,n,Playback(agent-loginok)

[macro-queue-logout]
exten => s,1,Set(agent=${EXTEN:4})
exten => s,n,Set(queue=irock.com)
exten => s,n,NoOp(Queue logout agent ${EXTEN:4} from queue ${phone});
exten => s,n,RemoveQueueMember(${queue});
exten => s,n,Playback(agent-loggedoff)

When I call 9**2**1611 I get the following error when debugging