From d848588107e0ac6cd7dead3b8cf3cc2bc87bd3b8 Mon Sep 17 00:00:00 2001 From: andrea-marchionni Date: Thu, 23 Jan 2025 15:36:17 +0100 Subject: [PATCH] Add new providers VoipTel 2 and Terrecablate --- .../50_asterisk.providers.sql | 2 + .../50_asterisk.rest_pjsip_providers.sql | 4 +- ...sterisk.rest_pjsip_trunks_custom_flags.sql | 6 +- ...50_asterisk.rest_pjsip_trunks_defaults.sql | 105 +++++++++++++++++- 4 files changed, 114 insertions(+), 3 deletions(-) diff --git a/mariadb/docker-entrypoint-initdb.d/50_asterisk.providers.sql b/mariadb/docker-entrypoint-initdb.d/50_asterisk.providers.sql index be0b9d6f6..8ee92bbcd 100644 --- a/mariadb/docker-entrypoint-initdb.d/50_asterisk.providers.sql +++ b/mariadb/docker-entrypoint-initdb.d/50_asterisk.providers.sql @@ -12,11 +12,13 @@ INSERT INTO `providers` (`provider`,`description`,`dettpeer`,`dettuser`,`registr ("opensolution_voip","Opensolution Voip","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ncanreinvite=yes\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nfromdomain=voip.opensolution.it\nhost=voip.opensolution.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=voip.opensolution.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@voip.opensolution.it/NUMERO"), ("sixcomm","Six Comm Group - Fibering S.p.A.","username=USERNAME\ntype=friend\nsecret=PASSWORD\nqualify=yes\ninsecure=port,invite\nhost=voip.sixcomm.net\ndtmfmode=rfc2833\nallow=CODECS","type=USERNAME\nsecret=PASSWORD\ninsecure=port,invite\ncontext=from-trunk\ndtmfmode=rfc2833\nallow=CODECS","USERNAME@voip.sixcomm.net:PASSWORD:USERNAME@pcscf.sixcomm.net/USERNAME"), ("talkho","Talkho","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ncanreinvite=yes\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=sip.talkho.com\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=sip.talkho.com\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=sip.talkho.com","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@sip.talkho.com/NUMERO"), +("terrecablate","Terrecablate","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ncanreinvite=yes\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=sbc.tcrs.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=sbc.tcrs.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=sbc.tcrs.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@sbc.tcrs.it/NUMERO"), ("timenet","Timenet","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ncanreinvite=yes\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=sbc.voipvox.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=sbc.voipvox.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=sbc.voipvox.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@sbc.voipvox.it/NUMERO"), ("twt","TWT","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ncanreinvite=yes\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=NUMERO\nhost=res.sip.twt.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=res.sip.twt.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=res.sip.twt.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@res.sip.twt.it/NUMERO"), ("vivavox","VivaVox","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ncanreinvite=yes\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=voip.vivavox.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=voip.vivavox.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=voip.vivavox.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@voip.vivavox.it/NUMERO"), ("voipeasy","VoipEasy","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ncanreinvite=yes\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=sip.voipeasy.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=sip.voipeasy.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\ndomain=sip.voipeasy.it\nfromdomain=sip.voipeasy.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@sip.voipeasy.it/NUMERO"), ("voiptel","VoipTel","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ncanreinvite=yes\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=voip.voiptelitalia.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=voip.voiptelitalia.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=voip.voiptelitalia.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@voip.voiptelitalia.it/NUMERO"), +("voiptel2","VoipTel 2","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ncanreinvite=yes\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=voip2.voiptelitalia.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=voip2.voiptelitalia.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=voip2.voiptelitalia.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@voip2.voiptelitalia.it/NUMERO"), ("voipvoice-sip","VoipVoice (sip.voipvoice.it)","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=sip.voipvoicetel.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=sip.voipvoicetel.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=sip.voipvoicetel.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@sip.voipvoicetel.it/NUMERO"), ("voipvoice-trunk","VoipVoice (trunk.voipvoice.it)","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=trunk.voipvoice.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=trunk.voipvoice.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=trunk.voipvoice.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@trunk.voipvoice.it/NUMERO"), ("voipvoice-user","VoipVoice (user.voipvoice.it)","disallow=all\nallow=CODECS\nbindaddr=0.0.0.0\ndefaultexpirey=330\ndtmfmode=rfc2833\nfromuser=USERNAME\nhost=user.voipvoice.it\ninsecure=very\nnat=yes\nport=5060\nqualify=yes\nrealm=user.voipvoice.it\nsecret=PASSWORD\nsrvlookup=yes\ntype=friend\nuseragent=Asterisk_Eut\nusername=USERNAME\nfromdomain=user.voipvoice.it","allow=CODECS\ncontext=from-pstn\nsecret=PASSWORD\ntype=user\ndtmfmode=rfc2833","USERNAME:PASSWORD@user.voipvoice.it/NUMERO"), diff --git a/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_providers.sql b/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_providers.sql index 2019613dd..4354e22fb 100644 --- a/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_providers.sql +++ b/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_providers.sql @@ -26,4 +26,6 @@ INSERT INTO `rest_pjsip_providers` (`id`,`provider`,`description`) VALUES (21,"wicity","WiCity"), (22,"wic","WiC"), (23,"xstream","XStream"), -(24,"digitalia","Digitalia ICT"); +(24,"digitalia","Digitalia ICT"), +(25,"voiptel2","VoipTel 2"), +(26,"terrecablate","Terrecablate"); diff --git a/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_trunks_custom_flags.sql b/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_trunks_custom_flags.sql index ee5bc5305..537100e4a 100644 --- a/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_trunks_custom_flags.sql +++ b/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_trunks_custom_flags.sql @@ -27,6 +27,8 @@ INSERT INTO `rest_pjsip_trunks_custom_flags` (`provider_id`,`keyword`,`value`) V (22,"disable_topos_header",0), (23,"disable_topos_header",0), (24,"disable_topos_header",0), +(25,"disable_topos_header",0), +(26,"disable_topos_header",0), (1,"disable_srtp_header",1), (2,"disable_srtp_header",1), (3,"disable_srtp_header",0), @@ -50,4 +52,6 @@ INSERT INTO `rest_pjsip_trunks_custom_flags` (`provider_id`,`keyword`,`value`) V (21,"disable_srtp_header",1), (22,"disable_srtp_header",1), (23,"disable_srtp_header",1), -(24,"disable_srtp_header",1); +(24,"disable_srtp_header",1), +(25,"disable_srtp_header",1), +(26,"disable_srtp_header",1); diff --git a/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_trunks_defaults.sql b/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_trunks_defaults.sql index 06aa4e576..34eb0a370 100644 --- a/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_trunks_defaults.sql +++ b/mariadb/docker-entrypoint-initdb.d/50_asterisk.rest_pjsip_trunks_defaults.sql @@ -1218,4 +1218,107 @@ INSERT INTO `rest_pjsip_trunks_defaults` (`provider_id`,`keyword`,`data`) VALUES (24,"t38_udptl_nat","no"), (24,"transport","0.0.0.0-udp"), (24,"trust_rpid","no"), -(24,"userconfig",""); +(24,"userconfig",""), +(25,"aor_contact",""), +(25,"aors",""), +(25,"auth_rejection_permanent","off"), +(25,"authentication","outbound"), +(25,"client_uri",""), +(25,"codecs","g729,ulaw,alaw"), +(25,"context","from-pstn"), +(25,"dialopts",""), +(25,"dialoutopts_cb","sys"), +(25,"direct_media","no"), +(25,"disabletrunk","off"), +(25,"dtmfmode","auto"), +(25,"expiration","300"), +(25,"failtrunk_enable","0"), +(25,"fatal_retry_interval","0"), +(25,"fax_detect","no"), +(25,"forbidden_retry_interval","10"), +(25,"force_rport","yes"), +(25,"from_domain","voip2.voiptelitalia.it"), +(25,"hcid","on"), +(25,"identify_by","default"), +(25,"inband_progress","no"), +(25,"language",""), +(25,"match",""), +(25,"max_retries","10000"), +(25,"maxchans",""), +(25,"media_address",""), +(25,"media_encryption","no"), +(25,"message_context",""), +(25,"npanxx",""), +(25,"outbound_proxy","sip:127.0.0.1:5060"), +(25,"peerdetails",""), +(25,"qualify_frequency","60"), +(25,"register",""), +(25,"registration","send"), +(25,"retry_interval","60"), +(25,"rewrite_contact","yes"), +(25,"rtp_symmetric","no"), +(25,"sendrpid","no"), +(25,"server_uri",""), +(25,"sip_server","voip2.voiptelitalia.it"), +(25,"sip_server_port","5060"), +(25,"support_path","no"), +(25,"sv_usercontext",""), +(25,"t38_udptl","no"), +(25,"t38_udptl_ec","none"), +(25,"t38_udptl_maxdatagram",""), +(25,"t38_udptl_nat","no"), +(25,"transport","0.0.0.0-udp"), +(25,"trust_rpid","no"), +(25,"userconfig",""), +(26,"aor_contact",""), +(26,"aors",""), +(26,"auth_rejection_permanent","off"), +(26,"authentication","outbound"), +(26,"client_uri",""), +(26,"codecs","g729,ulaw,alaw"), +(26,"context","from-pstn"), +(26,"dialopts",""), +(26,"dialoutopts_cb","sys"), +(26,"direct_media","no"), +(26,"disabletrunk","off"), +(26,"dtmfmode","auto"), +(26,"expiration","300"), +(26,"failtrunk_enable","0"), +(26,"fatal_retry_interval","0"), +(26,"fax_detect","no"), +(26,"forbidden_retry_interval","10"), +(26,"force_rport","yes"), +(26,"from_domain","sbc.tcrs.it"), +(26,"hcid","on"), +(26,"identify_by","default"), +(26,"inband_progress","no"), +(26,"language",""), +(26,"match",""), +(26,"max_retries","10000"), +(26,"maxchans",""), +(26,"media_address",""), +(26,"media_encryption","no"), +(26,"message_context",""), +(26,"npanxx",""), +(26,"outbound_proxy","sip:127.0.0.1:5060"), +(26,"peerdetails",""), +(26,"qualify_frequency","60"), +(26,"register",""), +(26,"registration","send"), +(26,"retry_interval","60"), +(26,"rewrite_contact","yes"), +(26,"rtp_symmetric","no"), +(26,"sendrpid","no"), +(26,"server_uri",""), +(26,"sip_server","sbc.tcrs.it"), +(26,"sip_server_port","5060"), +(26,"support_path","no"), +(26,"sv_usercontext",""), +(26,"t38_udptl","no"), +(26,"t38_udptl_ec","none"), +(26,"t38_udptl_maxdatagram",""), +(26,"t38_udptl_nat","no"), +(26,"transport","0.0.0.0-udp"), +(26,"trust_rpid","no"), +(26,"userconfig",""); +