[sr-dev] git:master: core: added forward()
Daniel-Constantin Mierla
miconda at gmail.com
Wed Feb 10 19:39:03 CET 2010
Module: sip-router
Branch: master
Commit: d31b697f2ca92e330efd482c19a4c2b7334781ca
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d31b697f2ca92e330efd482c19a4c2b7334781ca
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Tue Feb 9 11:23:50 2010 +0100
core: added forward()
- aliased forward() to forward(uri:host, uri:port)
- k 1.5.x compatibility
(cherry picked from commit 50237e89964b4fc8a4c8775076c1b75a05ee5e73)
---
cfg.y | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cfg.y b/cfg.y
index 4318728..9a87ef7 100644
--- a/cfg.y
+++ b/cfg.y
@@ -2725,7 +2725,8 @@ avpflag_oper:
| ISAVPFLAGSET { $$ = -1; }
;
cmd:
- FORWARD LPAREN host RPAREN { $$=mk_action( FORWARD_T, 2, STRING_ST, $3, NUMBER_ST, 0); set_cfg_pos($$); }
+ | FORWARD LPAREN RPAREN { $$=mk_action(FORWARD_T, 2, URIHOST_ST, 0, URIPORT_ST, 0); set_cfg_pos($$); }
+ | FORWARD LPAREN host RPAREN { $$=mk_action( FORWARD_T, 2, STRING_ST, $3, NUMBER_ST, 0); set_cfg_pos($$); }
| FORWARD LPAREN STRING RPAREN { $$=mk_action( FORWARD_T, 2, STRING_ST, $3, NUMBER_ST, 0); set_cfg_pos($$); }
| FORWARD LPAREN ip RPAREN { $$=mk_action( FORWARD_T, 2, IP_ST, (void*)$3, NUMBER_ST, 0); set_cfg_pos($$); }
| FORWARD LPAREN host COMMA NUMBER RPAREN { $$=mk_action(FORWARD_T, 2, STRING_ST, $3, NUMBER_ST, (void*)$5); set_cfg_pos($$); }
More information about the sr-dev
mailing list