[Serusers] pdt module and isdngw sems plugin
Andrei Pelinescu-Onciul
pelinescu-onciul at fokus.fraunhofer.de
Thu May 6 12:34:53 CEST 2004
On May 06, 2004 at 12:23, gaillac harry <gaillacharry at yahoo.fr> wrote:
> Hi Klaus,
>
> I do hope you're kidding !!! why isdngw plugin????
> Sorry I can't still get an isdn card or a cisco gateway.
>
> here is a plan in order to explain my question
>
>
>
>
>
> --------------------
> | BRI / 4 channels | number line:123456xxxx
> --------------------
> |
> |
> |
> |
> --------- ----------
> --------|NAT BOX |---------|SER+SEMS | :Internal dial plan 4 digits
> --------- ---------- :BOB number 1000
>
> - When a sip client want to dial an outgoing number, this one is sent to
> isdngw plugin .
>
> - When an incoming call from sip gateway to BOB is dialed what's going
> on?
>
> Does sems is able to remove 123456 prefix and sent 1000 to Bob?
Yes, ser can easily do this.
I haven't used pdt for that. In your case a simple strip(6) in the
ser.cfg will do it (e.g if (uri~='sip:123456.+@') strip(6); )
or subst_uri from textops: subst_uri('/(sip:)123456(.*)/\1\2/');).
Andrei
More information about the sr-users
mailing list