Hello again,
I've solved the python problem already
I didn't read carefully how to set up avpops in the tutorial
sorry bout that..=)
I've done what u told me before to set the the avp_write like following:
avp_write("imap://'$tu':vmailuser@pcr.ac.id:143/INBOX","$mailbox_url");
but when I saw SEMS debug, it shown like below:
(4908) DEBUG: Ivr-Python: ***** Mailbox Url: ******
url: imap://'$tu':vmailuser@pcr.ac.id:143/INBOX
user: '$tu'
passwd: vmailuser
host: pcr.ac.id
port: 143
path: INBOX
in the user field, the $tu cannot be defined. when I check /var/log/maillog, the following error login in imap server is occured :
Jun 18 15:09:51 pcr authdaemond: authmysql: trying this module
Jun 18 15:09:51 pcr authdaemond: SQL query: SELECT username, "", 'vmailuser', '507', '507', '/home/vmail', email_address, "", first_name, "" FROM subscriber WHERE username = " $tu "
Jun 18 15:09:51 pcr authdaemond: zero rows returned
Jun 18 15:09:51 pcr authdaemond: no password available to compare
Jun 18 15:09:51 pcr authdaemond: authmysql: REJECT - try next module
Please tell me what to do. Thanx before
Regards,
Meidiana
---------------------------------
Pinpoint customers who are looking for what you sell.
Hello again,
I've solved the python problem already
I didn't read carefully how to set up avpops in the tutorial
sorry bout that..=)
I've done what u told me before to set the the avp_write like following:
avp_write("imap://'$tu':vmailuser@pcr.ac.id:143/INBOX","$mailbox_url");
but when I saw SEMS debug, it shown like below:
(4908) DEBUG: Ivr-Python: ***** Mailbox Url: ******
url: imap://'$tu':vmailuser@pcr.ac.id:143/INBOX
user: '$tu'
passwd: vmailuser
host: pcr.ac.id
port: 143
path: INBOX
in the user field, the $tu cannot be defined. when I check /var/log/maillog, the following error login in imap server is occured :
Jun 18 15:09:51 pcr authdaemond: authmysql: trying this module
Jun 18 15:09:51 pcr authdaemond: SQL query: SELECT username, "", 'vmailuser', '507', '507', '/home/vmail', email_address, "", first_name, "" FROM subscriber WHERE username = " $tu "
Jun 18 15:09:51 pcr authdaemond: zero rows returned
Jun 18 15:09:51 pcr authdaemond: no password available to compare
Jun 18 15:09:51 pcr authdaemond: authmysql: REJECT - try next module
Please tell me what to do. Thanx before
Regards,
Meidiana
---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.
Hello users
The below is my lcr logic . When the first gateway is failed and second
gateway of lcr, has to ruoute the pstn gateway.
but, it say the 400 Bad request,
route[4]
{
load_gws();
next_gws();
t_on_failure("2");
route(2) ;
}
route[2]
{
t_relay();
exit;
}
fialure_route[2] {
next_gws();
t_on_failure("2");
route(2);
}
--
Thanks &Regards
Ravi Prakash Sunkara
Can anyone help out to make a default config to allow a static ip to use an
openser that would just push the calls to another openser ?
What I have tried yet is non working.
201.1.2.3 is one of our term boxes.
1.2.3.4 is the static ip to allow (eg clients asterisk)
5.6.7.8 is ser termination
Each time I place a call from 1.2.3..4 to this box 5.5.5.5 and relay to
5.6.7.8 the (5.6.7.8) replies with No Direct Communications, Please
>From if(uri == myself) {
route[0] {
if(msg:len > max_len) {
xlog("L_INFO", "Message too big - M=$rm RURI=$ru F=$fu T=$tu
IP=$si ID=$ci\n");
sl_send_reply("513", "Message Too Big");
exit;
}
if (!mf_process_maxfwd_header("10")) {
xlog("L_INFO", "Too many hops - M=$rm RURI=$ru F=$fu T=$tu
IP=$si ID=$ci\n");
sl_send_reply("483", "Too Many Hops");
exit;
}
if(method == "INVITE") {
record_route();
}
if(allow_trusted() && loose_route()) {
if(!t_relay()) {
sl_send_reply("503", "Service Failure to Relay");
}
exit;
} else if( $si=="1.2.3.4" && loose_route()) {
if(!t_relay()) {
sl_send_reply("503", "Service Failure to Relay");
}
exit;
}
if($si == "1.2.3.4") {
# Do your gateway selection and t_on_failure() here
rewritehost("5.6.7.8");
}
if(uri == myself) {
sl_send_reply("403", "No Direct Communications, Please");
exit;
}
if($si=="1.2.3.4" && (uri =~ "@201\.1\.2\.3")) {
if(!t_relay()) {
sl_send_reply("503", "Service Unavailable");
}
} else {
sl_send_reply("403", "Forbidden");
}
}
(SER 0.8.99-dev19 openbsd/sparc w/local patches)
Greetings:
We have rarely received INVITES from UAs not registered
on our SER host (from the outside) but as I am setting
up a means for a Internet users from foreign realms
to listen to audio by making a call to a UA on our network
it is now necessary to process foreign INVITES.
Some years ago, this worked as I have logs of successful
foreign calls and I have not changed ser.cfg substantially
since then, however now I have this problem:
06/17/07 02:13:34 8(3695) ERROR: parse_uri: bad char '@' in state 5 parsed: <sip:9202@cybertheque.org> (24) /
<sip:9202@cybertheque.org@10.0.2.200:5060> (40)
06/17/07 02:13:35 8(3695) extract_aor(): Error while parsing Address of Record
06/17/07 02:13:35 8(3695) lookup(): Error while extracting address of record
The foreign caller is dialing SIP:9202@cybertheque.org; cybertheque.org is
one of our aliases -- it is the external domain. The internal alias is
'cybertheque.net'; a UA on internal networks simply would dial '9202'.
The UA receiving the INVITE is on an internal host with address 10.0.2.200.
I could try 'replace_all("@cybertheque.org","");' but I would like some advice
as to the nature of the problem as well. I would also need some test
calls from the outside to debug the changes. Anyone willing to call
a few times (and let me know before you do so I can make the changes
to ser.cfg)?
Thanks,
Michael
Hi,
I would like to block messages for particular UAs because some of my phones behave in such a manner that they do not respond to MESSAGE message.
I would like to make I filter basing on the ruri.
How can I compare ruri namepart with a particular value??
will something like this work
if (@ruri == "sip:name@domain") ?
There would be nice to have such functionality that when UA registers and there is no MESSAGE message indicated in the Allow header field the offline messages are not dumped to the UA.
Cheers
Thanks in advanced
Tomasz
Hello.
openser 1.1
OS. Red HAt 4
server HP
4 GB RAM
I have an openser instance that works like balancer
with the module dispatcher an i have the following
errors after a 1 day of work:
ERROR: do_action: memory allocation failure
Jun 17 11:00:29 /usr/local/sbin/openser[9509]:
DISPATCHER:dst_update_dst: Error while setting host
Jun 17 11:00:29 /usr/local/sbin/openser[9509]:
DISPATCHER:ds_select_dst: cannot set dst addr
Jun 17 11:00:29 /usr/local/sbin/openser[9509]: ERROR:
mk_proxy: could not resolve hostname:
"u1.sip.telmex.com"
ERROR:tm:t_forward_nonack: failure to add branches
I red in the openser site that a posible solution is
to increase the memory and my question is
What is the recomended memory for parameters
PKG_MEM_POOL_SIZE and SHM_MEM_SIZE?
Thank`s in advanced
Llama gratis a cualquier PC del mundo.
Con una excelente calidad de sonido.
http://mx.messenger.yahoo.com/
Hi,
Yesterday I noticed something strange happenign one on of our
servers. Calls were being sent to servers within our VoIP
platform by OpenSER without (as far as I can see) really being
handled according to our OpenSER configuration.
When I looked into it, I found that the Request-URI contained
the IP address of the internal server, instead of the IP address
of our OpenSER machine or our SIP domain.
How can I check that the Request-URI contains only the SIP
domain or the IP address of the OpenSER server?
Might this have something to do with the loose_route() block?
Here's (heavily edited) basically our INVITE handling code from
openser.cfg:
if (loose_route())
{
use_media_proxy();
t_relay();
exit;
};
if (method=="INVITE")
{
t_on_reply("1");
rewritehost("SIP_DOMAIN");
# Check if it is international number format
if (uri=~"^sip:00")
{
strip(2);
};
if ( (method == "INVITE") )
{
if (!proxy_authorize("SIP_DOMAIN", "subscriber"))
{
proxy_challenge("SIP_DOMAIN", "0");
exit;
};
# let's check from=id ... avoids accounting confusion
if (!check_from())
{
sl_send_reply("403", "That is ugly -- use
From=id next time (gw)");
exit;
};
};
if (is_uri_host_local())
{
log("ATS: incoming message is for a local host ($tu)");
route(3);
};
--
Andreas Sikkema