Ability to set codec in MulticastRTP Asterisk channels

Posted on Wed 12 December 2012 in VoIP • Tagged with asterisk, c, code, patch, rtp, VoIPLeave a comment

Here you can find a port for Asterisk trunk (rev. 377802) of this patch: http://lists.digium.com/pipermail/asterisk-dev/2011-September/051262.html.
This patch permits to set the codec of an outgoing multicast RTP stream via the variable MULTICAST_RTP_CODEC:

exten => 999,1,Answer()  
exten => 999,n,Set(MULTICAST_RTP_CODEC=alaw ...
Continue reading

RTP timestamps fix in Asterisk MulticastRTP channels

Posted on Wed 12 December 2012 in VoIP • Tagged with asterisk, c, multicast, patch, rtp, VoIPLeave a comment

Starting from Asterisk 1.8 you can send multicast rtp streams using the MulticastRTP channel driver. There is an open issue that breaks outgoing RTP if the source channel doesn't contains timing informations (Eg. playing an audio file with Dial(MulticastRTP/basic/239.255.255.245:5555,,A(my-announce ...

Continue reading

Authentication username in Astersik SIP peer

Posted on Mon 12 July 2010 in VoIP • Tagged with asterisk, c, patch, VoIPLeave a comment

Asterisk use peername as username during SIP inbound digest authentication.
This patch add authuser parameter in SIP peer definition and use authuser in digest authentication:

Peer definition in /etc/asterisk/sip.conf

...
[pietro](sip-client-base)
authuser=MyUsername
secret=XXXXX
qualify=yes
nat=yes
...

Peer definition in my SIP client (Twinkle)
client configuration

REGISTER ...

Continue reading

GNU/Find posix acl support

Posted on Mon 28 September 2009 in Hacks • Tagged with c, find, gnuLeave a comment

Cercare file che corrispondono a delle acl posix all'interno di un filesystem molto intricato รจ sempre un delirio.

Questa patch aggiunge l'opzione -acl al comando find (GNU/Findutils).

Esempio d'uso:

$ touch 1 2 3 4
$ mkdir 5
$ setfacl -m u:root:rx 1
$ setfacl -m g:bin ...
Continue reading

Worstbit posix acl

Posted on Fri 26 September 2008 in Hacks • Tagged with acl posix, cLeave a comment

Software C che si occupa dell'encode e decode dei filename contenuti nei dump del comando

 getfacl -R

https://github.com/pbertera/junk/tree/master/worstbit

Continue reading

Arpiglio

Posted on Sun 21 May 2006 in Hacks • Tagged with arp, cLeave a comment

un tool per forgiare pacchetti ARP/RARP da linea di comando.
arpiglio.c

Continue reading