partysip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Partysip-dev] filter plugin split?


From: Marian Durkovic
Subject: [Partysip-dev] filter plugin split?
Date: Fri, 25 Apr 2003 13:04:14 +0200
User-agent: Mutt/1.2.5.1i

Hi all,

   I'm trying to implement forwarding to local PBX gateways using the filter
plugin. I'd like to have it working like this:

   user dials    2xxx        => call is forwarded to PBX gateway.

I've set up the following filter rule:

forward   ^sip:2([0-9][0-9][0-9])@|sip:address@hidden

However, the above rule also matches when user calls e.g.
address@hidden and incorrectly forwards the call to the local
PBX gateway.

  In principle I'd need the forwarding to be performed only when the host
part of the URL matches serverip or servername, but not otherwise.

  One possible approach would be to split filter plugin into two -
filter_local and filter_external and use the former only for requests
matching serverip or servername and the later for anything else.
This will allow to perform separate actions for local numbers - e.g.
forwarding them to predefined gateways and different for external URLs
(e.g. expand address@hidden into address@hidden)



     What do you think?


        Thanks,

 


--------------------------------------------------------------------------
----                                                                  ----
----   Marian Durkovic                       network  manager         ----
----                                                                  ----
----   Slovak Technical University           Tel: +421 2 524 51 301   ----
----   Computer Centre, Nam. Slobody 17      Fax: +421 2 524 94 351   ----
----   812 43 Bratislava, Slovak Republic    E-mail: address@hidden        ----
----                                                                  ----
--------------------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]