* You are viewing the archive for August 21st, 2012

Recording Calls

I am trying to record calls on demand both inbound and outbound calls. I can record outbound calls just fine but not inbound calls or calls from an internally between extensions. I am using the latest asterisk 1.8.x certified version.

On an outbound call I see:

== Using SIP RTP CoS mark 5
— Called SIP/ BVTrunk /7190000000
SIP/BVTrunk-00000163 is making progress passing it to SIP/1010-00000162
— SIP/BVTrunk-00000163 answered SIP/1010-00000162
— Feature Found: apprecord exten: apprecord
— Executing [s@macro-one-touch-record:1] ExecIf(“SIP/1010-00000162″, “0?Set(THISEXTEN=71900000000)”) in new stack
— Executing [s@macro-one-touch-record:2] ExecIf(“SIP/1010-00000162″, “1?Set(THISEXTEN=1010)”) in new stack
— Executing [s@macro-one-touch-record:3] ExecIf(“SIP/1010-00000162″, “0?MacroExit()”) in new stack
— Executing [s@macro-one-touch-record:4] GotoIf(“SIP/1010-00000162″, “0?stoprec”) in new stack
— Executing [s@macro-one-touch-record:5] GotoIf(“SIP/1010-00000162″, “0?stopped”) in new stack
— Executing [s@macro-one-touch-record:6] GotoIf(“SIP/1010-00000162″, “0?recording”) in new stack
— Executing [s@macro-one-touch-record:7] Set(“SIP/1010-00000162″, “MASTER_CHANNEL(ONETOUCH_REC)=RECORDING”) in new stack
— Executing [s@macro-one-touch-record:8] Set(“SIP/1010-00000162″, “MASTER_CHANNEL(REC_STATUS)=RECORDING”) in new stack
— Executing [s@macro-one-touch-record:9] Set(“SIP/1010-00000162″, “AUDIOHOOK_INHERIT(MixMonitor)=yes”) in new stack
— Executing [s@macro-one-touch-record:10] MixMonitor(“SIP/1010-00000162″, “2012/08/21/out-7190000000-1010-20120821-183119-1345595479.530.wav,a,”) in new stack
== Begin MixMonitor Recording SIP/1010-00000162
— Executing [s@macro-one-touch-record:11] Set(“SIP/1010-00000162″, “MON_FMT=wav”) in new stack
— Executing [s@macro-one-touch-record:12] Set(“SIP/1010-00000162″, “MASTER_CHANNEL(CDR(recordingfile))=out-7190000000-1010-20120821-183119-1345595479.530.wav”) in new stack
— Executing [s@macro-one-touch-record:13] Set(“SIP/1010-00000162″, “MASTER_CHANNEL(ONETOUCH_RECFILE)=out-7190000000-1010-20120821-183119-1345595479.530.wav”) in new stack
— Executing [s@macro-one-touch-record:14] Playback(“SIP/1010-00000162″, “beep”) in new stack
Playing ‘beep.ulaw’ (language ‘en’)
— Executing [s@macro-one-touch-record:15] MacroExit(“SIP/1010-00000162″, “”) in new stack
— Executing [h@macro-dialout-trunk:1] Macro(“SIP/1010-00000162″, “hangupcall,”) in new stack
— Executing [s@macro-hangupcall:1] GotoIf(“SIP/1010-00000162″, “1?theend”) in new stack
— Goto (macro-hangupcall,s,3)
— Executing [s@macro-hangupcall:3] ExecIf(“SIP/1010-00000162″, “1?Set(CDR(recordingfile)=out-7190000000-1010-20120821-183119-1345595479.530.wav)”) in new stack
— Executing [s@macro-hangupcall:4] Hangup(“SIP/1010-00000162″, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/1010-00000162′ in macro ‘hangupcall’
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on ‘SIP/1010-00000162′
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘SIP/1010-00000162′ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 7190000000, 6) exited non-zero on ‘SIP/1010-00000162′
== MixMonitor close filestream
== End MixMonitor Recording SIP/1010-00000162
== Extension Changed 1010[ext-local] new state Idle for Notify User 1004

On inbound calls I see:

== Using SIP RTP CoS mark 5
— Called SIP/1010
— Connected line update to SIP/ BVTrunk -00000160 prevented.
== Extension Changed 1010[ext-local] new state Ringing for Notify User 1004
— SIP/1010-00000161 is ringing
— Connected line update to SIP/ BVTrunk -00000160 prevented.
— SIP/1010-00000161 answered SIP/ BVTrunk -00000160
== Extension Changed 1010[ext-local] new state InUse for Notify User 1004
— Executing [s@macro-auto-blkvm:1] Set(“SIP/1010-00000161″, “__MACRO_RESULT=”) in new stack
— Executing [s@macro-auto-blkvm:2] Macro(“SIP/1010-00000161″, “blkvm-clr,”) in new stack
— Executing [s@macro-blkvm-clr:1] Set(“SIP/1010-00000161″, “SHARED(BLKVM,SIP/BVTrunk-00000160)=”) in new stack
— Executing [s@macro-blkvm-clr:2] Set(“SIP/1010-00000161″, “GOSUB_RETVAL=”) in new stack
— Executing [s@macro-blkvm-clr:3] MacroExit(“SIP/1010-00000161″, “”) in new stack
— Executing [s@macro-auto-blkvm:3] ExecIf(“SIP/1010-00000161″, “0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=1010)”) in new stack
— Executing [s@macro-auto-blkvm:4] ExecIf(“SIP/1010-00000161″, “0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=Josh Hopkins)”) in new stack
— Feature Found: apprecord exten: apprecord
— Executing [s@macro-one-touch-record:1] ExecIf(“SIP/1010-00000161″, “0?Set(THISEXTEN=1010)”) in new stack
— Executing [s@macro-one-touch-record:2] ExecIf(“SIP/1010-00000161″, “1?Set(THISEXTEN=1010)”) in new stack
— Executing [s@macro-one-touch-record:3] ExecIf(“SIP/1010-00000161″, “1?MacroExit()”) in new stack
— Executing [h@macro-dial:1] Macro(“SIP/ BVTrunk -00000160″, “hangupcall”) in new stack
— Executing [s@macro-hangupcall:1] GotoIf(“SIP/ BVTrunk -00000160″, “1?theend”) in new stack
— Goto (macro-hangupcall,s,3)
— Executing [s@macro-hangupcall:3] ExecIf(“SIP/ BVTrunk -00000160″, “0?Set(CDR(recordingfile)=)”) in new stack
— Executing [s@macro-hangupcall:4] Hangup(“SIP/ BVTrunk -00000160″, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/ BVTrunk -00000160′ in macro ‘hangupcall’
== Spawn extension (macro-dial, h, 1) exited non-zero on ‘SIP/ BVTrunk -00000160′
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘SIP/BVTrunk-00000160′ in macro ‘dial’
== Spawn extension (from-did-direct, 1010, 21) exited non-zero on ‘SIP/BVTrunk-00000160′
== Extension Changed 1010[ext-local] new state Idle for Notify User 1004

Comma Issue With Func_odbc

Hey all

I have an issue that I have been bumping up against. We have some inbound fax services and occasionally an inbound fax that successfully came in would fail to store it’s references in the database.

We are using a function in func_odbc to update a database table. We call the function from the dialplan and pass in all the opt_xxx return values as well as other important values we need to store. The issue we are having is this.

In some cases values such as Caller ID, Remote Station ID and Header Info will have a comma in them. Even though these values are being encoded using SQL_ESC the comma is being interpreted as an extra parameter and messing up the storage values and causing the database insert to fail. Is there a way to encode variables with commas in their values so they can be sent into the func_odbc function as a parameter without causing the process to thing it has more parameters?

Exp…

If the ${CALLERID(number)} or ${FAXOPT(remotestationid)} or others in the line below have a comma in them then the parameter order pushed buy one and the value is broken up when building the insert statement.

exten =>
Do-Store,n,Set(FAX-DO-STORE()=${CALLERID(number)},${CALLERID(name)},${l_faxF
ile_Path},${l_faxFile_FullName},${FAXOPT(ecm)},${FAXOPT(filename)},${FAXOPT(
localstationid)},${FAXOPT(headerinfo)},${FAXOPT(remotestationid)},${FAXOPT(m axrate)},${FAXOPT(minrate)},${l_storeRate},${FAXOPT(pages)},${FAXOPT(resolut ion)},${FAXOPT(error)},${FAXOPT(status)},${FAXOPT(statusstr)})

Any ideas suggestions on how to over come this. Would be appreciated.

Thanks Bryant Any ideas suggestions on how to over come this. Would be appreciated.ThanksBryant

Asterisk 11 – XMPP And JabberSend()

I’m trying to get my Asterisk 11 test box set up with XMPP, having troubles with JabberSend().

My jabber.conf file is as follows:
[general]
debug=no autoprune=no

[testaccount]
type=client serverhost=my.jabber.server username=myaccount@my.jabber.server secret=mypassword port=jabberport usetls=yes usesasl=yes

xmpp show connections gives the following output from the console:
testasterisk11*CLI> xmpp show connections Jabber Users and their status:
[testaccount] asterisk@jabber.metalink.net – Connected

Check For The Voicemail

Hi all, I have a problem with voicemail. My boss has asked me to send via email, the message that a user leaves on the voicemail. This is very easy. :)
After, he asked me to check before sending the email, if the receiver’s mailbox is full. If the mailbox is full, Asterisk should call the receveir intern (example 2001) and using a Playback tell him that his mailbox is full. How can I do? :(

Danilo

Which Card To Get?

We are investigating the possibility of using Asterisk in a KVM based virtual machine to handle connections to and from our HylaFax service. Our current set up uses a dedicated host with external fax modems. What I wish to know is what interface card would the list members recommend for a proof of concept trial?

We currently have two incoming fax lines and five vox lines all POTS. Our physical internet connection is fiber but I could not tell you exactly what type of service it presently carries. It is upgradable to a considerable extent in any case.

We are planning to move to VOIP as an adjunct to this project. This is secondary to getting the fax system moved but we would like to avoid having to install additional hardware for VOIP once the fax portion of project is complete and the service transferred.

What are our options?

version compatible with CentOS 5.7 (2.6.18-308.8.2.el5)

dear guys plz tell me which version of Asterisk is compatible with CentOS 5.7 (2.6.18-308.8.2.el5). and which is the latest version.

regards neo