Module: sip-router
Branch: master
Commit: c02995c63b7fd908893ad2fc3c48c86dbf0b4002
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c02995c…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Mon Sep 13 18:41:50 2010 +0200
pdbt: script for finish carrier IDs, from Mikko Lehto, mikko dot lehto at setera dot fi
---
utils/pdbt/scripts/get_carrier_names_finland.sh | 26 +++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/utils/pdbt/scripts/get_carrier_names_finland.sh b/utils/pdbt/scripts/get_carrier_names_finland.sh
new file mode 100755
index 0000000..2576475
--- /dev/null
+++ b/utils/pdbt/scripts/get_carrier_names_finland.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# Copyright (C) 2010 Mikko Lehto, mikko dot lehto at setera dot fi
+#
+# This file is part of sip-router, a free SIP server.
+#
+# sip-router is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version
+#
+# sip-router is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+# Small helper script for Finland:
+# Download the directory of finish carrier names and the respective IDs from
+# the regulation authorities and convert this into the format which the pdbt tool
+# understands.
+
+wget -O - "http://www2.ficora.fi/numerointi/nure_numbering.asp?nums=tot&lang=en" | awk '/<tbody>/, /<\/tbody>/' | awk -F"</td" -v RS="</tr" '{ gsub(/.*>/,"",$1) gsub(/.*>/,"",$2); gsub(/ä/,"ä",$2); gsub(/Å/,"Ã…",$2); gsub(/ö/,"ö",$2); if ( $2 != "") { printf "D%.3d %s\n",$1,$2 } }'
Module: sip-router
Branch: master
Commit: 1cf291af15d10160ca2bacedbb3d51817ed4286c
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1cf291a…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Mon Sep 13 18:37:38 2010 +0200
pdbt: fix wrong help output and comment, reported from Mikko Lehto, mikko dot lehto at setera dot fi
---
utils/pdbt/pdbt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/pdbt/pdbt.c b/utils/pdbt/pdbt.c
index 973e9d2..5cc5689 100644
--- a/utils/pdbt/pdbt.c
+++ b/utils/pdbt/pdbt.c
@@ -66,7 +66,7 @@ void print_usage(char *program) {
LINFO(" -s <file>: Specifies the csv list.\n");
LINFO(" Use '-' as filename to read from stdin.\n");
LINFO(" Line format: <number prefix>;<carrier id>\n");
- LINFO(" Format of carrier id: D[0-9][0-9][0-9]\n");
+ LINFO(" Format of carrier id: [0-9][0-9][0-9]\n");
LINFO(" -m <file>: Specifies the mmap image.\n");
LINFO(" -f <file>: Specifies the query file.\n");
LINFO(" Use '-' as filename to read from stdin.\n");
@@ -159,7 +159,7 @@ int file_query(char *filename, query_func_t query_func, void *data) {
/*
Read a csv list from the given file and build a dtree structure.
Format of lines in csv file: "<number prefix>;<carrier id>".
- Format of carrier id: "D[0-9][0-9][0-9]".
+ Format of carrier id: "[0-9][0-9][0-9]".
Returns the number of lines imported or -1 on error.
*/
int import_csv(struct dt_node_t *root, char *filename) {
sip-router writes:
> Since GIT#99cff51099 one doesn't not have to specify any fixup for string or any type of variable type arguments. Everything will be converted to string by the core (but note that vars will not be auto-converted if quoted, if you need that you probably need one of the
> fixup_var_str_12() or fixup_var_pve_str_12()).
> E.g.: f($a, "$a = " + $a) will work automatically.
> For ints, either convert the string argument to int by hand, or use
> fixup_var_int_12() as fixup and then access the args with
> get_int_fparam().
andrei,
can you give an example, how cmd_export_t entry would look like for a
function that has three arguments: a pvar argument and two string
arguments that can contain pseudo variables, and how the argument values
are referenced in the code?
-- juha
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task is now closed:
FS#66 - In daemonize mode parent process should exit with error (-1) if main process fails to start
User who did this - Andrei Pelinescu-Onciul (andrei)
Reason for closing: Implemented
Additional comments about closing: Implemented since GIT#9167c186.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=66
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.