* You are viewing the archive for November 18th, 2010

ISDN-FAX with Asterisk

Im using

asterisk-1.6.2.13
asterisk-addons-1.6.2.2
dahdi-linux-complete-2.4.0+2.4.0
libpri-1.4.11.4
spandsp-0.0.6
Sangoma Hardware, using wanpipe-3.5.17

Extensions.conf:

[fax-in]

exten => s,1,Answer()
exten => s,n,Wait(1)
exten =>
s,n,Set(BASEFILE=fax-${CALLERID(dnid)}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
;exten => s,n,Set(${LOCALSTATIONID})
exten => s,n,MixMonitor(/mnt/ramdisk/${BASEFILE}.wav)
exten => s,n,ReceiveFAX(/mnt/ramdisk/${BASEFILE}.tif)
exten => s,n,Hangup()
exten => h,1,System(/home/asterisk/dofax.sh “${EMAILADDRESS}” “${FAXSTATUS}”
“${CALLERID(num)}” “${REMOTESTATIONID}” “${CALLERID(dn$

[inbound-pri]

;
exten => 0000000000,1,Set(LOCALSTATIONID=${EXTEN})
exten => 0000000000,2,Set(EMAILADDRESS=”emailaddress”)
exten => 0000000000,3,Goto(fax-in,s,1)

the dofax.sh script checks if tif file exists, converts to pdf, emails, and
then archives on no errors,if missing tiff, or faxstatus <> success, it puts
the fax in a queue folder along with the mix monitor file for analysis. , of
the faxes the fail, you can usually here bad line quality from the sender.

/mnt/ramdisk is a 1gb ramdisk, the dofax script moves the tif/pdf/wavs to a
samba share, and deletes them out of the ramdisk folder.

William Stillwell

> —–Original Message—–
> From: href=”mailto:asterisk-users-bounces@lists.digium.com”>asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-
> href=”mailto:bounces@lists.digium.com”>bounces@lists.digium.com] On Behalf Of Thorolf Godawa
> Sent: Thursday, November 18, 2010 4:55 PM
> To: Asterisk Users Mailing List – Non-Commercial Discussion
> Subject: [asterisk-users] ISDN-FAX with Asterisk
>
> Hi everybody,
>
> since some time I am looking for a current and reliable solution to
> send
> and receive faxes (probably fax-2-mail and mail-2-fax) in conjunction
> with Asterisk.
>
> For testing I am using a HFC-ISDN passive PCI-card, in production a
> Digium Dual T1/E1 PCI-card will be used.
>
> I run CentOS 5.5 (Kernel 2.6.18) and Asterisk 1.4 (but I also can use
> 1.8) but did not find any solution where I think “that’s it”.
>
> What are you using? mISDN, CAPI4linux, HylaFAX, IAXmodem, chan_misdn,
> … ?
>
> Can you point me to the correct direction, may be there are some more
> or
> less current howto’s (more current than the ones from 2007 and earlier
> you find everywhere in the net)?
>
> Thanks a lot,
> –
>
> Chau y hasta luego,
>
> Thorolf
>
> –
> _____________________________________________________________________
> — Bandwidth and Colocation Provided by http://www.api-digital.com
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users

IAX2 and INVAL packets

Is anybody here familiar with the meaning of INVAL packets for IAX2?

Every few days I get a dropped outgoing call in the middle of the
conversation (the outgoing call has been connected for few minutes) when
an incoming call comes in. The log reads the following when this happens:

[Nov 17 15:25:04] DEBUG[5138] chan_iax2.c: Immediately destroying 2963,
having received INVAL
[Nov 17 15:25:04] DEBUG[5138] chan_iax2.c: Destroying call 2963
[Nov 17 15:25:04] DEBUG[11242] chan_iax2.c: We’re hanging up
IAX2/ihs_trunk_out-2963 now…
[Nov 17 15:25:04] VERBOSE[11242] chan_iax2.c: — Hungup
‘IAX2/ihs_trunk_out-2963′

And more setup details, for those who still have the will to live :-)

Asterisk version: 1.6.2.13
Internal externsions: everything on SIP – 3 Grandstream GXP-2000, 2
analog phones on a pci OpenVox card and 2 Linphone softphones
Trunks: IAX2
Trunks provider: Gradwell
Asterisk machine: 800Mhz Intel Pentium, 512MB of RAM
Internet connection: Tiscali business ADSL

I am happy to post here any config files and logs you might think would
be relevant.

This is not consistent – and I’ve managed to have 4 concurrent calls
which held 30 minutes (before I hung them up) when I tried. So not easy
to replicate.

Sebastian

Meetme and MOH

Hi,

With a dynamic Meetme using: MeetMe(|DsMrc)

How do I control which context MOH uses, other than “default” ?

Asterisk: 1.4.15

Thanks,

Adrian

Asterisk parking question

Hi,

I`ve been using Asterisk parking lots (multiple parking lots) with relative success on 1.6.2.X. The problem that I just found was the following: When I do park someone, and the call is parked for the duration of the timeout, the person who parked the call gets back the parked calls (his phone rings). That much is as expected. Let`s say this person doesn`t answer. I can`t tell where do set the behavior.

I get a

no extension ‘t’ in context ‘’

Message in the CLI. So, an empty context. Where do I set where the call should do at this point, I don`t have a NULL context anywhere, and I don`t think I should….?

Anyone knows what I can do to ensure the call isn’t dropped?

Mike

Asterisk 1.8 VM_DUR problems

Hi all,

We have been using asterisk 1.8 for some while now, together with asterisk 1.6.

We have the following problem. In asterisk 1.8 when you leave a voicemail, the person at that extension is notified by email that he has a voicemail. The voicemail is attached to that email along with other details like: duration of vm, caller name, caller number, date. The duration is always reported lover than 4 seconds despite the fact that the voicemail left has 20 seconds or more, I’ve looked on /var/spool/asterisk/voicemail/default/EXTEN/INBOX and there in the *.txt file of that voicemail the duration is still reported wrong.

On asterisk 1.6 we didn’t had this problem and I even ported the configuration file (voicemail.conf) from there to asterisk 1.8 but it still doesn’t work.

Do you have any ideas please ?

Thanks for the help,
Bogdan Sarandan

Asterisk Load Balance and Failover

Hi All

Does anyone know about any tool that does to Asterisk what mod_jk does for JBoss/Tomcat: a load-balance/failover server that is constantly connected to Asterisk backend servers and is capable of identify loaded or down servers?

Regards
Antônio Theóphilo

default iconsmime.p7s