Hi,
In our ser.cfg, when an r-uri is first received, it goes through some number to domain matching. For example, 8005551212@80.123.45.167 is mapped to 1212@companya.com. If the call is eventually forwarded to sems after failure route, we want to revert it back to 1212@companya.coom, otherwise it would be 1212@<phone-ip-address>. Is there a function to do it? The revert_uri() would revert it back to the original 8005551212@80.123.45.167.
Thanks, Richard
Richard,
Unfortunately the prefix2domain() function is not available in failure route block as of today. So, there is no easy way to do that right now.
I don't see there is major problem getting the function available in failure route. You can request the implementer to make it available.
Zeus
-----Original Message----- From: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Richard Sent: Wednesday, 8 September 2004 5:02 PM To: serusers@lists.iptel.org Subject: [Serusers] revert uri to its early state, but no the original
Hi,
In our ser.cfg, when an r-uri is first received, it goes through some number to domain matching. For example, 8005551212@80.123.45.167 is mapped to 1212@companya.com. If the call is eventually forwarded to sems after failure route, we want to revert it back to 1212@companya.coom, otherwise it would be 1212@<phone-ip-address>. Is there a function to do it? The revert_uri() would revert it back to the original 8005551212@80.123.45.167.
Thanks, Richard
Hi Zeus,
The pdt module seems to be geared toward European numbering system. For example, it always looks for terminator code which is not available in North America. So currently I am using a manual checking in ser.cfg to change the domain. I am thinking about developing a more flexible domain matching module in the future.
I wonder if there is any function to save uri and retrieve it later. Something like, save_uri(2) to save it to storage 2 and pop_uri(2) to get it back.
Thanks, Richard
-----Original Message----- From: Zeus Ng [mailto:zeus.ng@isquare.com.au] Sent: Tuesday, September 07, 2004 10:07 PM To: 'Richard' Cc: serusers@lists.iptel.org Subject: RE: [Serusers] revert uri to its early state, but no the original
Richard,
Unfortunately the prefix2domain() function is not available in failure route block as of today. So, there is no easy way to do that right now.
I don't see there is major problem getting the function available in failure route. You can request the implementer to make it available.
Zeus
-----Original Message----- From: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Richard Sent: Wednesday, 8 September 2004 5:02 PM To: serusers@lists.iptel.org Subject: [Serusers] revert uri to its early state, but no the original
Hi,
In our ser.cfg, when an r-uri is first received, it goes through some number to domain matching. For example, 8005551212@80.123.45.167 is mapped to 1212@companya.com. If the call is eventually forwarded to sems after failure route, we want to revert it back to 1212@companya.coom, otherwise it would be 1212@<phone-ip-address>. Is there a function to do it? The revert_uri() would revert it back to the original 8005551212@80.123.45.167.
Thanks, Richard
Richard writes:
I wonder if there is any function to save uri and retrieve it later. Something like, save_uri(2) to save it to storage 2 and pop_uri(2) to get it back.
i don't think that there is yet such a function, but it could easily implemented using the new avp functions.
-- juha
Hello,
On 9/8/2004 10:24 AM, Richard wrote:
Hi Zeus,
The pdt module seems to be geared toward European numbering system. For example, it always looks for terminator code which is not available in North America.
it was actually designed to have a web interface (there is a subfolder containing that in module directory) that automatically generates a code for a new domain upon an anonymous request. To avoid overhead of code overlapping checking and to have unlimited code range was chosen this way. It is in module's developer plan to move to a human driven code generation and no terminator -- no eta though.
So currently I am using a manual checking in ser.cfg to change the domain. I am thinking about developing a more flexible domain matching module in the future.
I wonder if there is any function to save uri and retrieve it later. Something like, save_uri(2) to save it to storage 2 and pop_uri(2) to get it back.
There is an ongoing work to have such feature -- until then, call revert_uri() and then the same piece of config that converted from original uri to intermediary state.
Daniel
Thanks, Richard
-----Original Message----- From: Zeus Ng [mailto:zeus.ng@isquare.com.au] Sent: Tuesday, September 07, 2004 10:07 PM To: 'Richard' Cc: serusers@lists.iptel.org Subject: RE: [Serusers] revert uri to its early state, but no the original
Richard,
Unfortunately the prefix2domain() function is not available in failure route block as of today. So, there is no easy way to do that right now.
I don't see there is major problem getting the function available in failure route. You can request the implementer to make it available.
Zeus
-----Original Message----- From: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Richard Sent: Wednesday, 8 September 2004 5:02 PM To: serusers@lists.iptel.org Subject: [Serusers] revert uri to its early state, but no the original
Hi,
In our ser.cfg, when an r-uri is first received, it goes through some number to domain matching. For example, 8005551212@80.123.45.167 is mapped to 1212@companya.com. If the call is eventually forwarded to sems after failure route, we want to revert it back to 1212@companya.coom, otherwise it would be 1212@<phone-ip-address>. Is there a function to do it? The revert_uri() would revert it back to the original 8005551212@80.123.45.167.
Thanks, Richard
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Bogdan is currenlty working on it. It is about storing the URI in middle of a rewrite chain to an AVP and resotring it from there from within failure_route.
-jiri
At 09:01 AM 9/8/2004, Richard wrote:
Hi,
In our ser.cfg, when an r-uri is first received, it goes through some number to domain matching. For example, 8005551212@80.123.45.167 is mapped to 1212@companya.com. If the call is eventually forwarded to sems after failure route, we want to revert it back to 1212@companya.coom, otherwise it would be 1212@<phone-ip-address>. Is there a function to do it? The revert_uri() would revert it back to the original 8005551212@80.123.45.167.
Thanks, Richard
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/