diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-01 17:32:21 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-01 17:32:21 +0200 |
commit | a18b11602cb19198544a090078faaa0a826ec19c (patch) | |
tree | c4d7bf2172864e468f370f592aaf38f8bf92362c /openbsc/src/osmo-bsc_nat/bsc_nat_vty.c | |
parent | 9e7e55f16476c618869ed54590b77724aa1a9817 (diff) |
nat: Make the USSD number matching a regexp
This allows to match multiple numbers and multiple patterns
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat_vty.c')
-rw-r--r-- | openbsc/src/osmo-bsc_nat/bsc_nat_vty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c b/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c index 40409f879..3158f3472 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat_vty.c @@ -1,6 +1,6 @@ /* OpenBSC NAT interface to quagga VTY */ -/* (C) 2010 by Holger Hans Peter Freyther - * (C) 2010 by On-Waves +/* (C) 2010-2011 by Holger Hans Peter Freyther + * (C) 2010-2011 by On-Waves * All Rights Reserved * * This program is free software; you can redistribute it and/or modify @@ -463,11 +463,11 @@ DEFUN(cfg_nat_ussd_lst_name, DEFUN(cfg_nat_ussd_query, cfg_nat_ussd_query_cmd, - "ussd-query QUERY", + "ussd-query REGEXP", "Set the USSD query to match with the ussd-list-name\n" "The query to match") { - bsc_replace_string(_nat, &_nat->ussd_query, argv[0]); + bsc_parse_reg(_nat, &_nat->ussd_query_re, &_nat->ussd_query, argc, argv); return CMD_SUCCESS; } |