* You are viewing Posts Tagged ‘STRFTIME’

When dialing the number, I need to see it in the Cisco LCD Phone

Dear List;

I have internal Menu that I use it when doing outside call (it ask some questions, and then it ask to dial the number that need to call it), I can access this menu by dialing 9, but after the Background stay play the wave file, then whatever I dial (to select) and whatever the number that I dial it, I do not see it in the LCD of the IP Phone, it stays display on the IP Phone the 9 number (which is the first dialed number to access the Menu), how can I display the dialed numbers that I am dialing on the LCD, because I need to see what I dialed (at least to know I am dialing the right digits and to know what the number I am calling him now)!!

I am adding below the extensions.conf part that is related to this scenario:

exten => 9,1,Set(AgentCount=1)
exten => 9,2,Background(WhichCustomer)

exten => 1,1,Set(EnteredOption=1)
exten => 1,2,Goto(ExternalOnly,s,1)

exten => 2,1,Set(EnteredOption=2)
exten => 2,2,Set(CALLERID(pres)=allowed)
exten => 2,3,Set(CALLERID(num)=65631040)
exten => 2,4,Goto(ExternalOnly,s,1)

exten => i,1,Playback(pbx-invalid)
exten => i,2,Set(AgentCount=$[${AgentCount}+1])
exten => i,3,GotoIf($[${AgentCount} < 3]?ExternalAgent,9,2:4)
exten => i,4,Playback(vm-goodbye)
exten => i,5,Hangup()

exten => t,1,Set(AgentCount=$[${AgentCount}+1])
exten => t,2,GotoIf($[${AgentCount} < 3]?ExternalAgent,9,2:3)
exten => t,3,Playback(vm-goodbye)
exten => t,4,Hangup()
;

[ExternalOnly]

exten => s,1,Set(OutCount=1)
exten => s,2,Background(EnterTheNumber)

exten => i,1,Playback(pbx-invalid)
exten => i,2,Set(OutCount=$[${OutCount}+1])
exten => i,3,GotoIf($[${OutCount} < 3]?ExternalOnly,s,2:4)
exten => i,4,Playback(vm-goodbye)
exten => i,5,Hangup()

exten => t,1,Set(OutCount=$[${OutCount}+1])
exten => t,2,GotoIf($[${OutCount} < 3]?ExternalOnly,s,2:3)
exten => t,3,Playback(vm-goodbye)
exten => t,4,Hangup()

exten => _ZXXXXXXXX,1,MixMonitor(${CHANNEL}${EXTEN}${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)}.wav)
exten => _ZXXXXXXXX,2,Dial(${PSTNTRUNK}/${EXTEN})
exten => _ZXXXXXXXX,3,Playback(vm-nobodyavail)
exten => _ZXXXXXXXX,4,Hangup()
exten => _ZXXXXXXXX,103,Congestion()
exten => _ZXXXXXXXX,104,Hangup()

Any help on how to be able to display at the Cisco IP Phone LCD what I am dialing during this scenario?

Regards
Bilal

Set (MONITOR_FILENAME=……………..) for queuing recording calls

Hi All;

I noticed in the queues.conf the configuration for recording the calls in the queuing, and regarding to the filename (or any other parameter), it is written that I can determine the filename using the command:

Set(MONITOR_FILENAME=foo)

But it should be called from the dialing plan, but really i did not understand how to call it from the dialing plan.

Well, for example this is my dialing plan to route for the queuing, how I can set the filename:

[CustomerSupport]

include => Internal

exten => s,1,Queue(CustomerSupport,t,,,120)
exten => s,2,Macro(voicemail,SIP/reception)

By the way, I need in the filename to appear the following:
The SIP username for the IP Phone that the call is routed for it
The calling number
The Time of the call

Actually for the outbound recording, I am using the below command (I mentioned it to declare the time format I am using and to declare how the filename to be named):

exten => _9ZXXXXXXXX,1,MixMonitor(${CHANNEL}${EXTEN:1}${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)}.wav)

So I hope if someone can help me to write the Set(MONITOR_FILENAME=foo) in a way to acheive same format the filename of the recorded outgoing calls (in addition that until now I am not able to know where I have to place the Set(MONITOR_FILENAME=foo).

For example, should I place it as following:
exten => s,1,Set(MONITOR_FILENAME=……………..)
exten => s,2,Queue(CustomerSupport,t,,,120)
exten => s,3,Macro(voicemail,SIP/reception)

Appreciate if someone help me plz.
Regards
Bilal

Mixmonitor concept’s question

[RecordPrompts]

exten => 1111,1,Answer()
exten => 1111,n,NoOp(WelCome to conference section)
exten => 1111,n,Playback(ConfDemoWC)
exten =>
1111,n,MixMonitor(tmp/00Record/1111-${STRFTIME(${EPOCH},,%C%y%m%d%H%M%S)}.wav,ab)
exten => 1111,n,Konference(${EXTEN},ADRSV)

Hi

My basic doubt is that if 1 or more person call 1111 extension then
recording will be started by asterisk Mixmonitor application.

So basic question will come into mind that all calls will start recording it
means more then 1 thread will start by asterisk for only recording purpose
but finally 1 file will be save at disk.

Am I right ?

Setting ‘fname_base’ variable doesn’t affect ‘automon’ result file.

Hello List,

Maybe I’m mistaken, but, shouldn’t the ‘fname_base’ variable of
‘Monitor’ application affect the file name generated through ‘automon’
feature?

I initialized this variable with a value as follows:
Set(fname_base=auto-${CALLERID(num)}-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})

a. Should I use ‘fname_base’ in uppercase (FNAME_BASE)? or…
b. Is this variable independent of the ‘automon’ feature?

Thanks in advice,

PS.
version: Asterisk 1.4.33.1
OS: Slackware Linux 13.0

How to use MYSQL(Set timeout x)

I use Asterisk 1.6.2.11 and this is my dialplan:

[test]
exten => 9999,1,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,Answer()
exten => 9999,n,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,PlayBack(hello-world)
exten => 9999,n,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,MYSQL(Set timeout 2)
exten => 9999,n,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,MYSQL(Connect connid localhost user pass asterisk)
exten => 9999,n,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,MYSQL(Query resultid ${connid} SELECT SLEEP(10))
exten => 9999,n,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,MYSQL(Fetch fetchid ${resultid} RESULT)
exten => 9999,n,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,MYSQL(Clear ${resultid})
exten => 9999,n,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,MYSQL(Disconnect ${connid})
exten => 9999,n,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,NoOp(Result: ${RESULT})
exten => 9999,n,NoOp(${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
exten => 9999,n,Hangup()

When i call to 9999 this is the CLI output:

Connected to Asterisk 1.6.2.11 currently running on Asterisk (pid = 2092)
Verbosity is at least 2147483647
Asterisk*CLI>
== Using SIP RTP CoS mark 5