Archive for the 'asterisk' category

Method #1 Situation: host A is the server which has a normal user added for us, and we want to connect our host B as a client. Host A’s sip.conf has this entry for the normal user: 123456[testuser] type=friend secret=abcd host=dynamic context=foo qualify=yes Because the host is defined as dynamic, we have to register with […]

My VoIP system

In the past few weeks I worked converting our home and work telephone system to VoIP. Here you can see the schematics: I’ve used the following VoIP adapters: Linksys SPA-3000, Linksys PAP2T, Linksys SPA-1001 (all from eBay of course). I have separate Skype users for home and the shop (skype-otthon, skype-uzlet) with a country-wide landline […]

If I call #88 on my VoIP system, I’ll hear a synthesized voice saying the current outside temperature. The quality and readibility is quite bad, but the whole thing is not hard to set up, and this way my Mom & Grandma can also listen to the temperature, so it’s worth it :) Here’s how […]

For Hungary/T-Com: 425@-20,425@-20;2(0.3/0.3/1) This means 425Hz on 300ms, silence for 300ms, and 1 second is considered a full cycle.

Here’s how you can make and receive Skype calls from Asterisk without purchasing Skype for Asterisk from Digium. We’ll use stsProxy and SipToSis. The main benefits of this method is that you can access Skype as a normal user, you don’t have to create a business user for the SIP interface needed by Asterisk, and […]

Here’s how you can record calls to mp3 files with Asterisk. Insert these to extensions.conf: 123456789[globals] MONITOR_EXEC=/usr/local/bin/asterisk-wav2mp3 [macro-record] exten => s,1,Set(CALLFILENAME=${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)}-${MACRO_CONTEXT}-${DIALEDPEERNUMBER}) exten => s,n,Set(POSTFIX=$["${CALLFILENAME}" =~ "\/([0-9a-zA-Z#_\-]+)$"]) exten => s,n,Set(CALLFILENAME=$["${CALLFILENAME}" : "([0-9a-zA-Z#_\-]+)"]${IF($[${LEN(${POSTFIX})}=0]?: _${POSTFIX})}) exten => s,n,Monitor(wav,${CALLFILENAME},m) Recording start example: exten => 555,1,Dial(SIP/1234,,M(record)) The script asterisk-wav2mp3 can be downloaded here. Make sure it’s runnable (chmod +x asterisk-wav2mp3). […]

If you have 2 or more outbound lines, and want to prioritize them, use this macro: 1234567exten => 1234,1,Macro(dialWithFallback,555666) [macro-dialWithFallback] exten => s,1,Dial(SIP/line1/${ARG1}) exten => s,n,GotoIf($["${DIALSTATUS}" = "CHANUNAVAIL"]?tryLine2) exten => s,n,Hangup() exten => s,n(tryLine2),Dial(SIP/line2/${ARG1}) In this case, 555666 will be called first on line1, and if it fails (channel unavailable), it will be called using […]

Click for dp.nonoo.hu »

About me

Nonoo
I'm Nonoo. This is my blog about music, sounds, filmmaking, amateur radio, computers, programming, electronics and other things I'm obsessed with. ... »

Twitter

Listening now

My favorite artists

Facebook