* You are viewing Posts Tagged ‘STRFTIME’

ReceiveFax and multiple pages

I’m using asterisk 1.8.7.0 and fax for asterisk

I’m receiving a multi page fax using the ReceiveFax application with the
d and f options.

The fax is being written as a tiff file but only the first page of the
fax is in the tiff file

The asterisk server knows there are multiple files in the fax as can be
seen by the success message

FAX session ’8′ is complete, result: ‘SUCCESS’ (FAX_SUCCESS), error:
‘NO_ERROR’, pages: 2, resolution: ’204×98′, transfer rate: ’14400′,
remoteSID: ‘XXXXXXXXXXX’

Here’s the part of the dial plan that receives the fax

exten => s,1,Answer()
exten => s,n,Wait(10)
exten => s,n,Set(FAXFILE=/tmp/fax-${CALLERID(num)}-${STRFTIME(${EPOCH},,
%Y%m%d-%H%M%S)}.tiff)
exten => s,n,ReceiveFAX(${FAXFILE},df)

Am I missing something obvious?

Thanks

Ish

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