Auteur Sujet: Remplacer Livebox : astuce pour le téléphone.  (Lu 158388 fois)

0 Membres et 1 Invité sur ce sujet

c0mm0n

  • Invité
Remplacer Livebox : astuce pour le téléphone.
« Réponse #60 le: 10 mai 2014 à 21:43:25 »
Aucun test n'a été fait de mon coté en ADSL, mais je ne vois pas de raison que ca ne marche pas (qqes ajustements a prévoir peut être).

c0mm0n

  • Invité
Remplacer Livebox : astuce pour le téléphone.
« Réponse #61 le: 11 mai 2014 à 20:16:03 »
Du neuf blegoff ?

c0mm0n

  • Invité
Remplacer Livebox : astuce pour le téléphone.
« Réponse #62 le: 27 mai 2014 à 21:46:39 »
Voila pour le SIP Orange sans livebox :
http://code.x0r.fr/siproxd_orange


Tol Phobos

  • Abonné Sosh fibre
  • *
  • Messages: 77
  • Sosh fibre 300/300Mbps à Clermont-Ferrand (63)
Remplacer Livebox : astuce pour le téléphone.
« Réponse #63 le: 27 mai 2014 à 22:07:24 »
La vache il a réussi ! x0r est un dieu vivant ! ;D Que son nom soit sanctifié, que sa volonté soit faite, que les pétales de fleurs recouvre le sol qu'il foule de ses divins pieds de uber geek !
Quelqu'un pour tester et faire un retour ?

tivoli

  • Toulouse (31)
  • Abonné Bbox fibre
  • *
  • Messages: 1 943
  • Toulouse (31)
Remplacer Livebox : astuce pour le téléphone.
« Réponse #64 le: 27 mai 2014 à 22:32:38 »
Ca revient au meme que de brancher un tel a la box en terme de limitations ? (je veux dire appels a l'etranger / mobile)

tit91

  • Abonné Orange Fibre
  • *
  • Messages: 524
Remplacer Livebox : astuce pour le téléphone.
« Réponse #65 le: 27 mai 2014 à 23:40:52 »
Normalement oui... mais pas pu tester, je n'arrive pas à compiler siproxd !

Marin

  • Client Bbox vdsl
  • Modérateur
  • *
  • Messages: 2 804
  • 73
Remplacer Livebox : astuce pour le téléphone.
« Réponse #66 le: 27 mai 2014 à 23:50:09 »
Si tu nous copie-colle l'erreur de compilation, on pourra peut-être t'aider.

c0mm0n

  • Invité
Remplacer Livebox : astuce pour le téléphone.
« Réponse #67 le: 27 mai 2014 à 23:54:59 »
J'ai réussi a compiler siproxd mais ca bloque ensuite sur celle du plugin :

root@ubnt:~/xtab-siproxd_orange-d13d2edf95fb# make
Making all in src
make[1]: Entering directory `/root/xtab-siproxd_orange-d13d2edf95fb/src'
make  all-am
make[2]: Entering directory `/root/xtab-siproxd_orange-d13d2edf95fb/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.   -I/usr/include/libxml2 -I/usr/include/libxml2   -g -O2 -g -Wall -Werror -I../siproxd/src -I/usr/include/libxml2   -g -O2 -MT plugin_orange_la-plugin_orange.lo -MD -MP -MF .deps/plugin_orange_la-plugin_orange.Tpo -c -o plugin_orange_la-plugin_orange.lo `test -f 'plugin_orange.c' || echo './'`plugin_orange.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/libxml2 -g -O2 -g -Wall -Werror -I../siproxd/src -I/usr/include/libxml2 -g -O2 -MT plugin_orange_la-plugin_orange.lo -MD -MP -MF .deps/plugin_orange_la-plugin_orange.Tpo -c plugin_orange.c  -fPIC -DPIC -o .libs/plugin_orange_la-plugin_orange.o
In file included from auth.h:4,
                 from plugin_orange.c:39:
/usr/include/curl/curl.h:605: error: nested redefinition of 'enum type'
/usr/include/curl/curl.h:605: error: redeclaration of 'enum type'
make[2]: *** [plugin_orange_la-plugin_orange.lo] Error 1
make[2]: Leaving directory `/root/xtab-siproxd_orange-d13d2edf95fb/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/xtab-siproxd_orange-d13d2edf95fb/src'
make: *** [all-recursive] Error 1

tit91

  • Abonné Orange Fibre
  • *
  • Messages: 524
Remplacer Livebox : astuce pour le téléphone.
« Réponse #68 le: 28 mai 2014 à 00:18:08 »
C'est bien aimable :) Voici donc pour la galère siproxd que c0mm0n est parvenu à surmonter... je n'ai aucune erreur lors du configure.

if gcc -DHAVE_CONFIG_H -I. -I. -I..    -D_GNU_SOURCE  -DBUILDSTR="\"`cat .buildno`\"" -g -O2 -Wall -pthread -D_POSIX_THREAD_SAFE_FUNCTIONS -MT dejitter.o -MD -MP -MF ".deps/dejitter.Tpo" -c -o dejitter.o dejitter.c; \
then mv -f ".deps/dejitter.Tpo" ".deps/dejitter.Po"; else rm -f ".deps/dejitter.Tpo"; exit 1; fi
dejitter.c: In function ‘dejitter_init’:
dejitter.c:78:4: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
    memset (&rtp_buffer_area, 0, sizeof(rtp_buffer_area));
    ^
dejitter.c:78:4: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
dejitter.c: In function ‘dejitter_delayedsendto’:
dejitter.c:103:4: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
    memcpy(&(m->rtp_buff), msg, m->message_len = len);
    ^
dejitter.c:103:4: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
dejitter.c: In function ‘dejitter_flush’:
dejitter.c:151:20: error: storage size of ‘tz’ isn’t known
    struct timezone tz;
                    ^
dejitter.c:156:7: warning: implicit declaration of function ‘gettimeofday’ [-Wimplicit-function-declaration]
       gettimeofday(current_tv,&tz);
       ^
dejitter.c:151:20: warning: unused variable ‘tz’ [-Wunused-variable]
    struct timezone tz;
                    ^
dejitter.c: In function ‘dejitter_delay_of_next_tx’:
dejitter.c:164:20: error: storage size of ‘tz’ isn’t known
    struct timezone tz ;
                    ^
dejitter.c:164:20: warning: unused variable ‘tz’ [-Wunused-variable]
dejitter.c: In function ‘dejitter_init_time’:
dejitter.c:181:20: error: storage size of ‘tz’ isn’t known
    struct timezone tz;
                    ^
dejitter.c:185:4: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
    memset(tc, 0, sizeof(*tc));
    ^
dejitter.c:181:20: warning: unused variable ‘tz’ [-Wunused-variable]
    struct timezone tz;
                    ^
dejitter.c: In function ‘send_top_of_que’:
dejitter.c:395:13: warning: implicit declaration of function ‘strerror’ [-Wimplicit-function-declaration]
             ERROR("sendto() [%s:%i size=%zd] delayed call failed: %s",
             ^
dejitter.c:395:13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 7 has type ‘int’ [-Wformat=]
Makefile:501: recipe for target 'dejitter.o' failed
make[2]: *** [dejitter.o] Error 1
make[2]: Leaving directory '/home/tit/SIP-LB/siproxd-0.8.2dev/src'
Makefile:293: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/tit/SIP-LB/siproxd-0.8.2dev'
Makefile:220: recipe for target 'all' failed
make: *** [all] Error 2

Marin

  • Client Bbox vdsl
  • Modérateur
  • *
  • Messages: 2 804
  • 73
Remplacer Livebox : astuce pour le téléphone.
« Réponse #69 le: 28 mai 2014 à 00:47:59 »
Effectivement tit91, j'obtiens la même erreur quand j'essaye de compiler le dernier snapshot de siproxd. Pour la corriger, il suffit d'ajouter cette ligne en haut du fichier src/dejitter.c :

#include <sys/time.h>
J'obtiens ensuite une autre erreur :

In file included from plugins.c:31:0:
plugins.c: In function ‘load_plugins’:
plugins.h:34:44: erreur: ‘lt_libltdl_LTX_preloaded_symbols’ undeclared (first use in this function)
 #define lt__PROGRAM__LTX_preloaded_symbols lt_libltdl_LTX_preloaded_symbols
                                            ^
/usr/include/ltdl.h:104:30: note: in expansion of macro ‘lt__PROGRAM__LTX_preloaded_symbols’
 #define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
                              ^
plugins.h:34:44: note: each undeclared identifier is reported only once for each function it appears in
 #define lt__PROGRAM__LTX_preloaded_symbols lt_libltdl_LTX_preloaded_symbols
                                            ^
/usr/include/ltdl.h:104:30: note: in expansion of macro ‘lt__PROGRAM__LTX_preloaded_symbols’
 #define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
                              ^
plugins.c:76:10: attention : implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
          strcpy(path, configuration.plugin_dir);
          ^
plugins.c:76:10: attention : incompatible implicit declaration of built-in function ‘strcpy’
plugins.c:77:10: attention : implicit declaration of function ‘strcat’ [-Wimplicit-function-declaration]
          strcat(path, configuration.load_plugin.string[i]);
          ^
plugins.c:77:10: attention : incompatible implicit declaration of built-in function ‘strcat’
plugins.c:79:10: attention : incompatible implicit declaration of built-in function ‘strcpy’
          strcpy(path, configuration.load_plugin.string[i]);
          ^
plugins.c:104:10: attention : implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
          memset(cur,0,sizeof(plugin_def_t));
          ^
plugins.c:104:10: attention : incompatible implicit declaration of built-in function ‘memset’

Celle-là peut être corrigée en ajoutant la ligne suivante en haut du fichier src/plugins.h :

#define lt_libltdl_LTX_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
Et... ça compile.

Je vais maintenant voir pour la compilation du plugin.

Marin

  • Client Bbox vdsl
  • Modérateur
  • *
  • Messages: 2 804
  • 73
Remplacer Livebox : astuce pour le téléphone.
« Réponse #70 le: 28 mai 2014 à 01:13:40 »
J'ai téléchargé le plugin depuis le dépôt BitBucket de x0r, et non l'archive .tar.bz2 donnée dans son dernier article, dans laquelle il semble manquer certains fichiers, tels que auth.h :

hg clone [url]https://bitbucket.org/xtab/siproxd_orange[/url]
Avec ça, le plugin se compile sans problème.

c0mm0n, cela vient peut-être de la version de libcurl que tu utilises. Est-elle récente ?

c0mm0n

  • Invité
Remplacer Livebox : astuce pour le téléphone.
« Réponse #71 le: 28 mai 2014 à 01:14:41 »
Je venais de l'installer, mais j'ai pris le tag en tar, c'est peut être la le souci.