Hi, Is it possible to append prefix after load_gw() in lcr? I need to prefix the RURI so that I comply with our provider requirements. Is this possible? I'm using "prefix" before "rewritehost" and this is working but how about "load_gw" first then "prefix" based on the gateway obtained from LCR?
Thanks in advance, Ryan
Hi, Anybody wants to comment on this? Any help would be appreciated.
Thanks, Ryan
At 01:51 PM 6/9/2006, Ryan Pagquil wrote:
Hi, Is it possible to append prefix after load_gw() in lcr? I need to prefix the RURI so that I comply with our provider requirements. Is this possible? I'm using "prefix" before "rewritehost" and this is working but how about "load_gw" first then "prefix" based on the gateway obtained from LCR?
Thanks in advance, Ryan
Try.
Ryan Pagquil wrote:
Hi, Anybody wants to comment on this? Any help would be appreciated.
Thanks, Ryan
At 01:51 PM 6/9/2006, Ryan Pagquil wrote:
Hi, Is it possible to append prefix after load_gw() in lcr? I need to prefix the RURI so that I comply with our provider requirements. Is this possible? I'm using "prefix" before "rewritehost" and this is working but how about "load_gw" first then "prefix" based on the gateway obtained from LCR?
Thanks in advance, Ryan
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi,
Yes It is possible and it can be made automatically when you set a prefix for a gateway You don't need to use the "prefix" command after next_gw(). Just make sure you always call next_gw() after load_gw() even if you have just one gw.
The gateway prefix is attached to RURI when the route prefix matchs the RURI. The route prefix and gw prefix have different meaning, the first is used to match a gateway group and the second is used to prefix the RURI for a specic gateway.
Juliano
-----Mensagem original----- De: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] Em nome de Ryan Pagquil Enviada em: sexta-feira, 9 de junho de 2006 22:49 Para: serusers@lists.iptel.org Assunto: [Serusers] Re: Append prefix after load_gw()?
Hi, Anybody wants to comment on this? Any help would be appreciated.
Thanks, Ryan
At 01:51 PM 6/9/2006, Ryan Pagquil wrote:
Hi, Is it possible to append prefix after load_gw() in lcr? I need to prefix the RURI so that I comply with our provider requirements. Is this possible? I'm using "prefix" before "rewritehost" and this is working but how about "load_gw" first then "prefix" based on the gateway obtained from LCR?
Thanks in advance, Ryan
_______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 8/6/2006
Hi Jiliano, I think you want to say that the prefix is present in the RURI like 631234567 and 63 is the prefix or 6312 depends on what you will indicate in your lcr table. What I want to do is to prefix the RURI after loading the gateway from LCR. It is like this:
RURI = sip:631234567@domain.com
compare the prefix with the LCR table and load the gateway...
then append prefix such as 3333 at the beginning of the new RURI....
RURI = sip:3333631234567@x.x.x.x
Without using LCR this is easily done by using "prefix", but how will I do this when I'm using LCR in loading the gateways?
Thanks, Ryan
At 06:21 AM 6/11/2006, Juliano Duque wrote:
Hi,
Yes It is possible and it can be made automatically when you set a prefix for a gateway You don't need to use the "prefix" command after next_gw(). Just make sure you always call next_gw() after load_gw() even if you have just one gw.
The gateway prefix is attached to RURI when the route prefix matchs the RURI. The route prefix and gw prefix have different meaning, the first is used to match a gateway group and the second is used to prefix the RURI for a specic gateway.
Juliano
-----Mensagem original----- De: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] Em nome de Ryan Pagquil Enviada em: sexta-feira, 9 de junho de 2006 22:49 Para: serusers@lists.iptel.org Assunto: [Serusers] Re: Append prefix after load_gw()?
Hi, Anybody wants to comment on this? Any help would be appreciated.
Thanks, Ryan
At 01:51 PM 6/9/2006, Ryan Pagquil wrote:
Hi, Is it possible to append prefix after load_gw() in lcr? I need to prefix the RURI so that I comply with our provider requirements. Is this possible? I'm using "prefix" before "rewritehost" and this is working but how about "load_gw" first then "prefix" based on the gateway obtained from LCR?
Thanks in advance, Ryan
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 8/6/2006
-- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 9/6/2006
Hi, I mean prepend the prefix before the <telephone-number>@<gw-ip>...
Thanks, Ryan
At 09:39 AM 6/13/2006, Ryan Pagquil wrote:
Hi Jiliano, I think you want to say that the prefix is present in the RURI like 631234567 and 63 is the prefix or 6312 depends on what you will indicate in your lcr table. What I want to do is to prefix the RURI after loading the gateway from LCR. It is like this:
RURI = sip:631234567@domain.com
compare the prefix with the LCR table and load the gateway...
then append prefix such as 3333 at the beginning of the new RURI....
RURI = sip:3333631234567@x.x.x.x
Without using LCR this is easily done by using "prefix", but how will I do this when I'm using LCR in loading the gateways?
Thanks, Ryan
At 06:21 AM 6/11/2006, Juliano Duque wrote:
Hi,
Yes It is possible and it can be made automatically when you set a prefix for a gateway You don't need to use the "prefix" command after next_gw(). Just make sure you always call next_gw() after load_gw() even if you have just one gw.
The gateway prefix is attached to RURI when the route prefix matchs the RURI. The route prefix and gw prefix have different meaning, the first is used to match a gateway group and the second is used to prefix the RURI for a specic gateway.
Juliano
-----Mensagem original----- De: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] Em nome de Ryan Pagquil Enviada em: sexta-feira, 9 de junho de 2006 22:49 Para: serusers@lists.iptel.org Assunto: [Serusers] Re: Append prefix after load_gw()?
Hi, Anybody wants to comment on this? Any help would be appreciated.
Thanks, Ryan
At 01:51 PM 6/9/2006, Ryan Pagquil wrote:
Hi, Is it possible to append prefix after load_gw() in lcr? I need to prefix the RURI so that I comply with our provider requirements. Is this possible? I'm using "prefix" before "rewritehost" and this is working but how about "load_gw" first then "prefix" based on the gateway obtained from LCR?
Thanks in advance, Ryan
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 8/6/2006
-- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 9/6/2006
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi Ryan,
You can easily prefix the RURI based on the gateway using LCR module, no need to manually prepend the prefix if you have set the prefix for the gateway on LCR.
This is a example on how to set the LCR table for what you need.
# openserctl lcr addgw_grp test # openserctl lcr addgw testgw 1.2.2.1 5060 sip udp 1 3333 # openserctl lcr addroute 63 % 1 1
Once you performed these commands it will insert the following data into the LCR tables
# openserctl lcr show
lcr routes +--------+----------+--------+----------+ | prefix | from_uri | grp_id | priority | +--------+----------+--------+----------+ | 63 | % | 1 | 1 | +--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 3 | test | +--------+----------+ lcr gateways +---------+---------------------+------+------------+-----------+--------+-- -----+--------+ | gw_name | ip | port | uri_scheme | transport | grp_id | strip | prefix | +---------+---------------------+------+------------+-----------+--------+-- -----+--------+ | testgw | 16908801 (1.2.2.1) | 5060 | 1 | 1 | 1 | 0 | 3333 | +---------+---------------------+------+------------+-----------+--------+-- -----+--------+
So if RURI is sip:631234567@domain LCR will compare the prefix with the route prefix... Load the gateway testgw and automatically append the prefix set for this gateway (3333) at the beginning of the new RURI
RURI = sip:3333631234567@domain
I hope that helps.
Juliano Duque
-----Mensagem original----- De: Ryan Pagquil [mailto:rpagquil@philonline.com] Enviada em: terça-feira, 13 de junho de 2006 00:03 Para: Juliano Duque; serusers@lists.iptel.org Assunto: Re: RES: [Serusers] Re: Append prefix after load_gw()?
Hi, I mean prepend the prefix before the <telephone-number>@<gw-ip>...
Thanks, Ryan
At 09:39 AM 6/13/2006, Ryan Pagquil wrote:
Hi Jiliano, I think you want to say that the prefix is present in the RURI like 631234567 and 63 is the prefix or 6312 depends on what you will indicate in your lcr table. What I want to do is to prefix the RURI after loading the gateway from LCR. It is like this:
RURI = sip:631234567@domain.com
compare the prefix with the LCR table and load the gateway...
then append prefix such as 3333 at the beginning of the new RURI....
RURI = sip:3333631234567@x.x.x.x
Without using LCR this is easily done by using "prefix", but how will I do this when I'm using LCR in loading the gateways?
Thanks, Ryan
At 06:21 AM 6/11/2006, Juliano Duque wrote:
Hi,
Yes It is possible and it can be made automatically when you set a prefix for a gateway You don't need to use the "prefix" command after
next_gw().
Just make sure you always call next_gw() after load_gw() even if you have just one gw.
The gateway prefix is attached to RURI when the route prefix matchs the RURI. The route prefix and gw prefix have different meaning, the first is used to match a gateway group and the second is used to prefix the RURI for a specic gateway.
Juliano
-----Mensagem original----- De: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] Em nome de Ryan Pagquil Enviada em: sexta-feira, 9 de junho de 2006 22:49 Para: serusers@lists.iptel.org Assunto: [Serusers] Re: Append prefix after load_gw()?
Hi, Anybody wants to comment on this? Any help would be appreciated.
Thanks, Ryan
At 01:51 PM 6/9/2006, Ryan Pagquil wrote:
Hi, Is it possible to append prefix after load_gw() in lcr? I need to prefix the RURI so that I comply with our provider requirements. Is this possible? I'm using "prefix" before "rewritehost" and this is working but how about "load_gw" first then "prefix" based on the gateway obtained from LCR?
Thanks in advance, Ryan
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 8/6/2006
-- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 9/6/2006
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 9/6/2006
Hi Juliano, What version of LCR module is this? Can you point me where to download this? My LCR module doesn't have the table structure that the one you presented me. I'm using lcr-0.9.0, what can I do to have that capability?
Thanks, Ryan
At 01:35 AM 6/14/2006, Juliano Duque wrote:
Hi Ryan,
You can easily prefix the RURI based on the gateway using LCR module, no need to manually prepend the prefix if you have set the prefix for the gateway on LCR.
This is a example on how to set the LCR table for what you need.
# openserctl lcr addgw_grp test # openserctl lcr addgw testgw 1.2.2.1 5060 sip udp 1 3333 # openserctl lcr addroute 63 % 1 1
Once you performed these commands it will insert the following data into the LCR tables
# openserctl lcr show
lcr routes +--------+----------+--------+----------+ | prefix | from_uri | grp_id | priority | +--------+----------+--------+----------+ | 63 | % | 1 | 1 | +--------+----------+--------+----------+ lcr gateway groups +--------+----------+ | grp_id | grp_name | +--------+----------+ | 3 | test | +--------+----------+ lcr gateways +---------+---------------------+------+------------+-----------+--------+-- -----+--------+ | gw_name | ip | port | uri_scheme | transport | grp_id | strip | prefix | +---------+---------------------+------+------------+-----------+--------+-- -----+--------+ | testgw | 16908801 (1.2.2.1) | 5060 | 1 | 1 | 1 | 0 | 3333 | +---------+---------------------+------+------------+-----------+--------+-- -----+--------+
So if RURI is sip:631234567@domain LCR will compare the prefix with the route prefix... Load the gateway testgw and automatically append the prefix set for this gateway (3333) at the beginning of the new RURI
RURI = sip:3333631234567@domain
I hope that helps.
Juliano Duque
-----Mensagem original----- De: Ryan Pagquil [mailto:rpagquil@philonline.com] Enviada em: terça-feira, 13 de junho de 2006 00:03 Para: Juliano Duque; serusers@lists.iptel.org Assunto: Re: RES: [Serusers] Re: Append prefix after load_gw()?
Hi, I mean prepend the prefix before the <telephone-number>@<gw-ip>...
Thanks, Ryan
At 09:39 AM 6/13/2006, Ryan Pagquil wrote:
Hi Jiliano, I think you want to say that the prefix is present in the RURI like 631234567 and 63 is the prefix or 6312 depends on what you will indicate in your lcr table. What I want to do is to prefix the RURI after loading the gateway from LCR. It is like this:
RURI = sip:631234567@domain.com
compare the prefix with the LCR table and load the gateway...
then append prefix such as 3333 at the beginning of the new RURI....
RURI = sip:3333631234567@x.x.x.x
Without using LCR this is easily done by using "prefix", but how will I do this when I'm using LCR in loading the gateways?
Thanks, Ryan
At 06:21 AM 6/11/2006, Juliano Duque wrote:
Hi,
Yes It is possible and it can be made automatically when you set a prefix for a gateway You don't need to use the "prefix" command after
next_gw().
Just make sure you always call next_gw() after load_gw() even if you have just one gw.
The gateway prefix is attached to RURI when the route prefix matchs the RURI. The route prefix and gw prefix have different meaning, the first is used to match a gateway group and the second is used to prefix the RURI for a specic gateway.
Juliano
-----Mensagem original----- De: serusers-bounces@lists.iptel.org [mailto:serusers-bounces@lists.iptel.org] Em nome de Ryan Pagquil Enviada em: sexta-feira, 9 de junho de 2006 22:49 Para: serusers@lists.iptel.org Assunto: [Serusers] Re: Append prefix after load_gw()?
Hi, Anybody wants to comment on this? Any help would be appreciated.
Thanks, Ryan
At 01:51 PM 6/9/2006, Ryan Pagquil wrote:
Hi, Is it possible to append prefix after load_gw() in lcr? I need to prefix the RURI so that I comply with our provider requirements. Is this possible? I'm using "prefix" before "rewritehost" and this is working but how about "load_gw" first then "prefix" based on the gateway obtained from LCR?
Thanks in advance, Ryan
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 8/6/2006
-- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 9/6/2006
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 9/6/2006
-- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 9/6/2006