diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-11 15:32:09 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-16 12:10:32 +0100 |
commit | b35c5c3227a30187de4df3e214eace142e1be100 (patch) | |
tree | 4fae57f24b42a06052e1057a6709fc07a0fb78b0 /src/ss7_application.c | |
parent | d04011abc17f298714213b970cbdf034a1ac2d0d (diff) |
stp: Allow to specify a trunk_name in the application
This trunk name will be used to send RSIP for the trunk on ISUP
resets. Right now each app can be associated only one trunk.
Diffstat (limited to 'src/ss7_application.c')
-rw-r--r-- | src/ss7_application.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ss7_application.c b/src/ss7_application.c index 701ec04..b28c376 100644 --- a/src/ss7_application.c +++ b/src/ss7_application.c @@ -1,8 +1,8 @@ /* * The SS7 Application part for forwarding or nat... * - * (C) 2010-2011 by Holger Hans Peter Freyther <zecke@selfish.org> - * (C) 2010-2011 by On-Waves + * (C) 2010-2012 by Holger Hans Peter Freyther <zecke@selfish.org> + * (C) 2010-2012 by On-Waves * All Rights Reserved * * This program is free software: you can redistribute it and/or modify @@ -421,3 +421,11 @@ int ss7_application_mgcp_domain_name(struct ss7_application *app, return app->mgcp_domain_name == NULL; } + +int ss7_application_trunk_name(struct ss7_application *app, const char *name) +{ + talloc_free(app->trunk_name); + app->trunk_name = talloc_strdup(app, name); + + return app->trunk_name == NULL; +} |