Hi Sir,
I need to block country codes 246, 871-874 and 881. For my customer to dial
pstn, they simply dial 00 first then country code, etc.
Any idea why my reg exp doesn't work? thank you
regards,
nhadie
--------- Mensagem Original --------
From: Marian Dumitru <marian.dumitru(a)voice-sistem.ro>
To: Nhadie <nhadie(a)cbcpworld.com>
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] blocking certain countries
Date: 23/04/05 18:08
>
> Hi Nhadie,
>
> Most probably there is something wrong with the regular express and the
> dialled RURI doesn't match.
> What RURI suppose to match and doesn't?
>
> Best regards,
> Marian
>
> Nhadie wrote:
> > Hi All,
> >
> > I defined something like this on my config, to block pstn calls to
> > certain countries. Unfortunately it doesn't work.
> >
> > if
((uri=~"^(sip:)?00(871-874|881|246)[0-9]*@([a-z]+.)?mydomain.com")
> > || (uri=~"^(sip:)?00(871-874|881|246)[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
those locations
> > are not allowedn");};
> > sl_send_reply("404", "Not Found");
> > break;
> >
> > } else if
((uri=~"^(sip:)?00[0-9]*@([a-z]+.)?mydomain.com") ||
> > (uri=~"^(sip:)?00[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
anywhere in the Worldn");};
> > # Strip first to digits (00)
> > strip(2);
> > # Prefix with 12345#
> > prefix("12345#");
> >
rewritehostport("123.123.123.123:5060");
> > # Remove credentials
> > consume_credentials();
> > # Route call
> > t_relay_to_udp("123.123.123.123",
"5060");
> > break;
> > }
> > } else {
> > .....
> > .....
> > .....
> > .....
> >
> > can anyone tell my error here? thank you in advance
> >
> > regards,
> > nhadie
>
> --
> Voice System
> http://www.voice-system.ro
>
>
>
>
>
Hi Sir,
I need to block country codes 246, 871-874 and 881. For my customer to dial
pstn, they simply dial 00 first then country code, etc.
Any idea why my reg exp doesn't work? thank you
regards,
nhadie
--------- Mensagem Original --------
From: Marian Dumitru <marian.dumitru(a)voice-sistem.ro>
To: Nhadie <nhadie(a)cbcpworld.com>
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] blocking certain countries
Date: 23/04/05 18:08
>
> Hi Nhadie,
>
> Most probably there is something wrong with the regular express and the
> dialled RURI doesn't match.
> What RURI suppose to match and doesn't?
>
> Best regards,
> Marian
>
> Nhadie wrote:
> > Hi All,
> >
> > I defined something like this on my config, to block pstn calls to
> > certain countries. Unfortunately it doesn't work.
> >
> > if
((uri=~"^(sip:)?00(871-874|881|246)[0-9]*@([a-z]+.)?mydomain.com")
> > || (uri=~"^(sip:)?00(871-874|881|246)[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
those locations
> > are not allowedn");};
> > sl_send_reply("404", "Not Found");
> > break;
> >
> > } else if
((uri=~"^(sip:)?00[0-9]*@([a-z]+.)?mydomain.com") ||
> > (uri=~"^(sip:)?00[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
anywhere in the Worldn");};
> > # Strip first to digits (00)
> > strip(2);
> > # Prefix with 12345#
> > prefix("12345#");
> >
rewritehostport("123.123.123.123:5060");
> > # Remove credentials
> > consume_credentials();
> > # Route call
> > t_relay_to_udp("123.123.123.123",
"5060");
> > break;
> > }
> > } else {
> > .....
> > .....
> > .....
> > .....
> >
> > can anyone tell my error here? thank you in advance
> >
> > regards,
> > nhadie
>
> --
> Voice System
> http://www.voice-system.ro
>
>
>
>
>
Hi Sir,
I need to block country codes 246, 871-874 and 881. For my customer to dial
pstn, they simply dial 00 first then country code, etc.
Any idea why my reg exp doesn't work? thank you
regards,
nhadie
--------- Mensagem Original --------
From: Marian Dumitru <marian.dumitru(a)voice-sistem.ro>
To: Nhadie <nhadie(a)cbcpworld.com>
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] blocking certain countries
Date: 23/04/05 18:08
>
> Hi Nhadie,
>
> Most probably there is something wrong with the regular express and the
> dialled RURI doesn't match.
> What RURI suppose to match and doesn't?
>
> Best regards,
> Marian
>
> Nhadie wrote:
> > Hi All,
> >
> > I defined something like this on my config, to block pstn calls to
> > certain countries. Unfortunately it doesn't work.
> >
> > if
((uri=~"^(sip:)?00(871-874|881|246)[0-9]*@([a-z]+.)?mydomain.com")
> > || (uri=~"^(sip:)?00(871-874|881|246)[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
those locations
> > are not allowedn");};
> > sl_send_reply("404", "Not Found");
> > break;
> >
> > } else if
((uri=~"^(sip:)?00[0-9]*@([a-z]+.)?mydomain.com") ||
> > (uri=~"^(sip:)?00[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
anywhere in the Worldn");};
> > # Strip first to digits (00)
> > strip(2);
> > # Prefix with 12345#
> > prefix("12345#");
> >
rewritehostport("123.123.123.123:5060");
> > # Remove credentials
> > consume_credentials();
> > # Route call
> > t_relay_to_udp("123.123.123.123",
"5060");
> > break;
> > }
> > } else {
> > .....
> > .....
> > .....
> > .....
> >
> > can anyone tell my error here? thank you in advance
> >
> > regards,
> > nhadie
>
> --
> Voice System
> http://www.voice-system.ro
>
>
>
>
>
Hi Sir,
I need to block country codes 246, 871-874 and 881. For my customer to dial
pstn, they simply dial 00 first then country code, etc.
Any idea why my reg exp doesn't work? thank you
regards,
nhadie
--------- Mensagem Original --------
From: Marian Dumitru <marian.dumitru(a)voice-sistem.ro>
To: Nhadie <nhadie(a)cbcpworld.com>
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] blocking certain countries
Date: 23/04/05 18:08
>
> Hi Nhadie,
>
> Most probably there is something wrong with the regular express and the
> dialled RURI doesn't match.
> What RURI suppose to match and doesn't?
>
> Best regards,
> Marian
>
> Nhadie wrote:
> > Hi All,
> >
> > I defined something like this on my config, to block pstn calls to
> > certain countries. Unfortunately it doesn't work.
> >
> > if
((uri=~"^(sip:)?00(871-874|881|246)[0-9]*@([a-z]+.)?mydomain.com")
> > || (uri=~"^(sip:)?00(871-874|881|246)[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
those locations
> > are not allowedn");};
> > sl_send_reply("404", "Not Found");
> > break;
> >
> > } else if
((uri=~"^(sip:)?00[0-9]*@([a-z]+.)?mydomain.com") ||
> > (uri=~"^(sip:)?00[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
anywhere in the Worldn");};
> > # Strip first to digits (00)
> > strip(2);
> > # Prefix with 12345#
> > prefix("12345#");
> >
rewritehostport("123.123.123.123:5060");
> > # Remove credentials
> > consume_credentials();
> > # Route call
> > t_relay_to_udp("123.123.123.123",
"5060");
> > break;
> > }
> > } else {
> > .....
> > .....
> > .....
> > .....
> >
> > can anyone tell my error here? thank you in advance
> >
> > regards,
> > nhadie
>
> --
> Voice System
> http://www.voice-system.ro
>
>
>
>
>
Hi Sir,
I need to block country codes 246, 871-874 and 881. For my customer to dial
pstn, they simply dial 00 first then country code, etc.
Any idea why my reg exp doesn't work? thank you
regards,
nhadie
--------- Mensagem Original --------
From: Marian Dumitru <marian.dumitru(a)voice-sistem.ro>
To: Nhadie <nhadie(a)cbcpworld.com>
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] blocking certain countries
Date: 23/04/05 18:08
>
> Hi Nhadie,
>
> Most probably there is something wrong with the regular express and the
> dialled RURI doesn't match.
> What RURI suppose to match and doesn't?
>
> Best regards,
> Marian
>
> Nhadie wrote:
> > Hi All,
> >
> > I defined something like this on my config, to block pstn calls to
> > certain countries. Unfortunately it doesn't work.
> >
> > if
((uri=~"^(sip:)?00(871-874|881|246)[0-9]*@([a-z]+.)?mydomain.com")
> > || (uri=~"^(sip:)?00(871-874|881|246)[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
those locations
> > are not allowedn");};
> > sl_send_reply("404", "Not Found");
> > break;
> >
> > } else if
((uri=~"^(sip:)?00[0-9]*@([a-z]+.)?mydomain.com") ||
> > (uri=~"^(sip:)?00[0-9]*@10.0.2.200")) {
> > if (isflagset(8)) {xlog("L_INFO", "Call to
anywhere in the Worldn");};
> > # Strip first to digits (00)
> > strip(2);
> > # Prefix with 12345#
> > prefix("12345#");
> >
rewritehostport("123.123.123.123:5060");
> > # Remove credentials
> > consume_credentials();
> > # Route call
> > t_relay_to_udp("123.123.123.123",
"5060");
> > break;
> > }
> > } else {
> > .....
> > .....
> > .....
> > .....
> >
> > can anyone tell my error here? thank you in advance
> >
> > regards,
> > nhadie
>
> --
> Voice System
> http://www.voice-system.ro
>
>
>
>
>
Elena,
But from what I can see, 4xx, 5xx and 6xx refer to
"errors" as per the RFC. It would be nice if there was
another sequence (such as 9xx) for informational
purposes only.
Thanks
--- Elena Ramona Modroiu <ramona(a)voice-system.ro>
wrote:
> You could you a new reply code from classes 4xx or
> 5xx (these two look
> more appropriate, although you can use a 6xx reply
> too -- see chapter 21
> in RFC3261 about reply codes) with a special reason
> phrase (Call
> forwarding enabled). Many phones display the reason
> phrase and that
> should help the caller to understand what happened.
>
> A nicer way, imo, is to redirect the call to an
> announcement server that
> plays a confirmation message.
>
> Ramona
>
> Dave wrote:
>
> >I am using avpops to allow services such as
> >call-forwarding, dnd, etc. I want to allow the
> users
> >to be able to enter sequences such as *982223333,
> >implying that he wants call forwarding enabled and
> the
> >number to forward to is 2223333.
> >
> >Question: Once SER gets the INVITE and stores the
> >number to forward in an AVP, what response should
> SER
> >send back to the UA? It cannot be 200 OK. I would
> like
> >to send a response that basically displays "Call
> >forwarding enabled" and ends the transaction.
> >
> >Thanks in advance
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Tired of spam? Yahoo! Mail has the best spam
> protection around
> >http://mail.yahoo.com
> >
> >_______________________________________________
> >Serusers mailing list
> >serusers(a)lists.iptel.org
> >http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
I just committed some changes into 0.9.0 auth* modules - basically it's
just a backport from the development branch.
Mainly to solve some issues regarding the RPID handling (there were
quite some reports about RPID problems in 0.9.0), which was one of the
last drawbacks before 0.9.0 release.
Interface changes:
auth_db:
param "load_credentials": list of '|' separated columns to be load
from subscriber table at auth time. The values for each column is loaded
in a corresponding AVP (string type) with same name as the column;
Default value is "rpid". Empty value "" disable this feature.
auth:
param "rpid_avp": avp name (string) which carry the RPID value -
must be synchronized with auth_db if RPID is fetched from DB. Default
value is "rpid".
Please all 0.9.0 users, give it a try a report any potential problems.
bogdan
I have some questions about SER that I can't find answers to in the wiki.
Does SER have T.38 support?
Does SER have a module to send MWI notifications?
Does the SER nat support replace a STUN server? Should it be used with one?
Is stun better to use than it?
Can SER handel more than one database type loaded? (Eg mysql and pgsql?) If
so, how can you choose which one is used for what?
Any (Unix) ODBC database module planned or under development?
When routing a call through ser (from PSTN or another sip phone) how can I
define the number of rings before the call gets sent to voicemail?
hello
i have SER+asterisk for voicemail. there are two cases
1. if UA is not registered at SER it will forward call
to asterisk for voicemail. (working)
2. if UA is present at SER but not accepting call in
30 seconds. Ser should rout call to asterisk for
voicemail.(this is not working Ser is only sending 486
busy to asterisk)
failure_route[1] {
if (t_check_status("408|486")){
revert_uri ();
rewritehostport ("asterisk:5070");
append_branch();
#forward(asterisk,5070);
}
}
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com