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:

1
2
3
4
5
6
[testuser]
type=friend
secret=abcd
host=dynamic
context=foo
qualify=yes

Because the host is defined as dynamic, we have to register with our client. Add this to our host B’s sip.conf (to the [general] section):

1
register => testuser:abcd@hostAipaddress

And add this to the bottom of sip.conf:

1
2
3
4
5
6
7
8
[testuser]
type=peer
username=testuser
secret=abcd
host=hostAipaddress
context=incoming
callbackextension=cba ; this extension will be called on host B when host A calls testuser
qualify=yes

This way we can call any extension on host B (in host B’s foo context) like this:

1
exten => 123,1,Dial(SIP/${EXTEN}@testuser)

Note: ${EXTEN} will be replaced with 123.

We can only call host B’s cba extension from host A using this method.

Method #2

Situation: we want to call any extension on host B (in the specified context) from host A and vica versa.

Add this to host A’s sip.conf, to the [general] section:

1
register => testuser:abcd@hostBipaddress

And this to the bottom of host A’s sip.conf:

1
2
3
4
5
6
7
[hostA2hostB]
type=peer
username=hostA2hostB
secret=abcd
host=dynamic
context=foo
qualify=yes

Add this to host B’s sip.conf, to the [general] section:

1
register => testuser:abcd@hostAipaddress

And this to the bottom of host B’s sip.conf:

1
2
3
4
5
6
7
[hostA2hostB]
type=peer
username=hostA2hostB
secret=abcd
host=dynamic
context=bar
qualify=yes

This case we can call any extension in host B’s bar context from host A, and any extension in host A’s foo context from host B using a command like this:

1
exten => 123,1,Dial(SIP/${EXTEN}@hostA2hostB)

A weekend in Austria

Pets this weekend

Scottie was sleepy when we arrived home around midnight, and Manyika doesn’t care about the laser pointer. :)

We’re having some fun these days in the office:

For this solution I used these hardware:

  • BeagleBone
  • magnetic door open sensor
  • a cheap CM102-based sound card from eBay (sold as 3D USB sound card for about $2)
  • a USB hub
  • a TP-LINK WN722 WiFi dongle.
  • 2 active speakers by my colleague makos (passive would have been okay too, as the CM102 drives them pretty loud)

» …continue reading ‘Beer sound on door opening’

New year’s eve in Rome

Musicless version:

We’re 3D printing!

This is an older video from December, when we got the Replicator2.

Dubai+Oman

Recently I’ve been on GITEX in Dubai. After the exhibition we travelled to Oman to look around. Here’s a short (and a longer) video about the 10 day trip:


» …continue reading ‘Dubai+Oman’

RouterOS ADSL QoS

I have an ADSL connection at home in Tata with only about 800kbit/s upload bandwidth. I had to figure out how I can prioritize VoIP traffic with my new RouterBoard 750GL.

First my upload had to be throttled down in the RouterBoard a little below my ADSL upload speed. I added a new queue in the Queues window -> Queue Tree:

“inti” is my ASDL PPPoE interface. After this, I created 8 subqueues for each available priority (RouterOS supports 8 priorities):


» …continue reading ‘RouterOS ADSL QoS’

The Dude on Linux

I installed two Mikrotik RouterBoard 750s in my network last week. One of them is NATing my home ADSL connection, the second one is in the Gerecse tower and routes between my home network and the newly installed Pusztamarót Wi-Fi link. Here’s a picture of the two Ubiquity AirGrid M5 HPs on the Gerecse tower used for the HA2NON-HA5KDR and HA5KDR-Pusztamarót links:

The antenna on the left is connected to our APRS repeater. Here’s my current network topology:


» …continue reading ‘The Dude on Linux’

New photoblog

I used Streamzoo as my mobile photoblogging service since Picplz (which I loved) closed. I must admit I hate Streamzoo, it’s interface is too complicated, the photos sometimes won’t upload, their website is ugly and I don’t see the point in tagging my photos to sort them into “streams”.

Now I have uploaded all my previous Picplz and Streamzoo photos to a Tumblr blog and I will continue to post my photos taken with my cell phone and effected using pixlr-o-matic there. The address of my new photoblog is m.nonoo.hu.

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