Thanks guys for your reponses
_____
From: Ramin NIkaeen [mailto:Rnikaeen@goldline.net]
Sent: Wednesday, September 28, 2005 12:29 PM
To: Sherwood McGowan
Subject: RE: [Serusers] Regular Expression Problems in this if statement?
Try
uri =~ "^sip:1[0-9]{10}@[0-9]{3}\.[0-9]{3}\.1\.foo\.bar\.net")
ie. Remove "\" before the "@".
Let me know if it works.
ramin
-----Original Message-----
From: Sherwood McGowan [mailto:madprofzero@yahoo.com]
Sent: Wednesday, September 28, 2005 12:22 PM
To: serusers(a)lists.iptel.org
Subject: [Serusers] Regular Expression Problems in this if statement?
Hello all, very glad to have been a user on this list, though I have been
lurking.
I've checked the documentation and have had trouble finding out information
on how to translate my standard regexes (perl) into SER's routing logic
I'm trying to use the following logic:
if (uri =~ "^sip:1[0-9]{10}\@[0-9]{3}\.[0-9]{3}\.1\.foo\.bar\.net") {
#perform actions
}
Now, that SHOULD match the following scenario:
uri has 1 + 10 digits + @ + 3digits + . + 3digits + . + 1 + .foor.bar.net
Unfortunately, it's not working.Any help translating the regex, or even just
a link to the syntax allowed, maybe it's not allowing {n} to match n times?
Thanks,
Sherwood McGowan
hi all,
I tried going through the avp documents but I have a few doubts related to avp_db_load and avp_check functions.
I wanted to implement the access control list. the access control values may be jus like:
1 => local calls
2 => long distance calls
3 => international calls.
I am using the default table usr_preferences. when I do the avp_check as:
if(!avp_check("$acl", "and/0x01"))
I get an error that it cannot be parsed and fix the avp_check. And can someone pls explain how the bitwise check "and", "or" etc works..
thanks,
jayesh
---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
Hello everybody,
a new mailing list was created to provide a forum for parties who wish
to discuss commercial or business related activities, opportunities,
etc. related to OpenSER, VoIP, SIP ...
The email address of the mailing list is "business(a)openser.org". To
subscribe/unsubscribe, follow the link:
http://openser.org/cgi-bin/mailman/listinfo/business
It is list where everybody can subscribe but no archiving is done. This
should force anyone interested in some business to get up-to-date
information, avoiding questions related to past mails found on web
archive. Also, it should prevent some spaming from users trying to
increase search engine's ranking via links and message posts.
The usual mails sent to this list should be in the form of "I need
_this_, who does it?" or "I do _this_, who needs it?", but should not be
limited to such pattern.
Basic rules for posting on the mailing list:
- keep a fair conduit of messages, no bad remarks about others or
counter-advertising
- do not send images, flash or other graphics - post links instead
- it is recommended to reply directly to the sender when it is a
one-to-one business, the others may not be interested, otherwise they
should post a message
- if nobody answers, then nobody needs/provides what you offer/need, it
is no reason to send the message hourly, wait for some days or weeks
Hopefully, it will help everybody for a mutual benefit.
Cheers,
Daniel
Suppose that we know which calls are open, based on the accounting data,
so we have all dialog parameters (Call-ID, From, To, C-Seqs, etc...).
How can I terminate a session that is lasting too long?
If I suppose that a session is actually closed (for example because one
UA has crashed), how can I be sure that it is really closed (eventually
actually closing it)?
I'm thinking to send two BYE messages to both UAs (impersonating the
other UA), so to make them close the session (if it is still open).
Is this tecnically possible?
Are there any contraindications?
Is there a better way to obtain it?
Thanks.
--
___________________________________________________
__
|- giannici(a)neomedia.it
|ederico Giannici http://www.neomedia.it
___________________________________________________
Hi SER users,
Why does my aliases and locations are not persistent? Considering
that they appear in my database (aliases and location), when I restarted
SER all aliases and locations are not being read by SER. What will I do
is to restart my X-lite softphone for me to re-register. And for my
aliases I will run again serctl alias add <alias> sip:<uri> for the
aliases to work. It seems like SER is not reading my database and all
contact informations are only stored on its memory. But all these
contacts appears in my location and aliases tables of the ser database.
Is there any known bugs about this? Please help. I'm using SER-0.9.3 in
SPARC64 Debian linux with mediaproxy as nat traversal solution. Any help
is greately appreciated...
Thanks,
--
Ryan Pagquil
Infodyne Inc. - PhilOnline.com
3603 Antel Global Corporate Center
Doña Julia Vargas Ave.
Ortigas Center Pasig City
Tel: 687-0715
Web: www.philonline.com
confirm 83b7fb1612811c64f85f47a6046dd84dea286d15
dear,
I'm working on a project and i'm using ser as a sip server.
actually i have this problem: every time i send an instant message to
a subscriber i get this error message:
483 too many hops
i tried to fix it but i couldn't and i don't know what to do !
(My computer connect many computers. Is it reason?!)
if any one can help me i'll be very grateful
i'm using ser 0.9.3
When I use sipsak,
I received following messages.
root]# sipsak -T -s sip:user@mydomain.com
warning: IP extract from warning activated to be more informational
0: 192.168.178.194 (0.148 ms) SIP/2.0 483 Too Many Hops
1: 192.168.178.194 (1.915 ms) SIP/2.0 483 Too Many Hops
2: 192.168.178.194 (25.673 ms) SIP/2.0 483 Too Many Hops
3: 192.168.178.194 (4.855 ms) SIP/2.0 483 Too Many Hops
4: 192.168.178.194 (9.286 ms) SIP/2.0 483 Too Many Hops
5: 192.168.178.194 (20.285 ms) SIP/2.0 483 Too Many Hops
6: 192.168.178.194 (17.068 ms) SIP/2.0 483 Too Many Hops
7: 192.168.178.194 (15.038 ms) SIP/2.0 483 Too Many Hops
8: 192.168.178.194 (16.379 ms) SIP/2.0 483 Too Many Hops
9: timeout after 500 ms
9: timeout after 1000 ms
9: timeout after 2000 ms
9: 192.168.178.194 (1480.452 ms) SIP/2.0 483 Too Many Hops
10: 192.168.178.194 (20.068 ms) SIP/2.0 483 Too Many Hops
11: 192.168.178.194 (21.916 ms) SIP/2.0 483 Too Many Hops
12: 192.168.178.194 (22.478 ms) SIP/2.0 483 Too Many Hops
13: 192.168.178.194 (22.984 ms) SIP/2.0 513 Message too big
without Contact header
======================================
here's my code:
# ----------- global configuration parameters -----------------------
#debug=3 # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=yes # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://root:vlftmd@localhost/ser"
alias=sam.cse
# ------------------ module loading ---------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters --------------
# -- usrloc params --
modparam("usrloc","db_url","mysql://root:vlftmd@localhost/ser")
#modparam("usrloc", "db_mode", 0)
modparam("registrar","use_domain",1)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
#
#modparam("auth","secret","123123123")
#modparam("auth_db","db_url","mysql://root:vlftmd@localhost/ser")
#modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this
config),
# uncomment also the following parameter)
#
#modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic ------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
break;
};
}
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
if (!method=="REGISTER") record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri==myself) {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
route(1);
break;
};
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("sam.cse", "subscriber")) {
www_challenge("sam.cse", "0");
break;
};
save("location");
break;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
_________________________________________________________________
싸게 싸게 MSN공동구매
http://www.waawaa.com/cobuy/cobuy_default.asp?siteid=10160
Hello y have 3 interfaces on my box
1 Lan to Internet
2 Lan to 192.168.1.x
3 Lan to 192.168.108.x
I only have one domain in my openser
I want to know a method to use the mediaproxy only when sending packet tru
interfaces for example
When making a call from lan 108 to internet o 192.168.1.x
And not to use mediaproxy when calling within the same lan.
Thanks for your help
Fernando Rodriguez V.
frod(a)aitelecom.net
AITelecom S.A. de C.V.
http://www.aitelecom.net
Hi, I have found the problem, but i don't know ho to solve it.
To search the problem I started SER with a debug level 9, redirectin
STDERROR to a file ( if some one want to do it is: /etc/init.d/ser
start 2>>/ser.log1 ) and when I was reading the file I found it:
2(1926) lookup(): 'ninguna' Not found in usrloc
This is what the server say when i send a MESSAGE to
ninguna(a)10.22.1.249, but then I used: serctl ul show, and got this:
...Record(0x4045d1b8)...
domain: 'location'
aor : 'ninguna'
~~~Contact(0x4045d218)~~~
domain : 'location'
aor : 'ninguna'
Contact : 'sip:ninguna@10.22.1.249'
Expires : 3583
q :
Call-ID : '1549255136(a)10.22.1.5'
CSeq : 1
User-Agent: 'sipsak 0.8.9_pre'
received : ''
State : CS_SYNC
Flags : 0
next : (nil)
prev : (nil)
~~~/Contact~~~~
.../Record...
can any one give me a solution? BEFORE of sending the message I send a
REFISTER for the user ninguna.
Hi,
I want to configure my ser.cfg so as to bind a user john to a DID
1234 from my pstn switch. John is a user in my ser DB and i want to
assign him the phone number 1234, so that whenever my pstn GW forwards
this call for 1234 to SER, SER should forward this call to user
john.Which command do i use ni this case.
serctl alias add john 1234, OR serctl alias add 1234 john,
beacuse in my case, none of these is working, although i can see the
switch forwarding the call to SER.
How can i use save("aliases") in this scenario? I have used
lookup ("alaises") at appropriate places.
Thanks
Ashutosh
(open)ser users,
Forget this post I just try to get a reply from Mr
Maxim Sobolev.
Dear Maxim,
Please to reply to my mails I've been sending since
several months.
http://mail.iptel.org/pipermail/serusers/2005-August/022745.html
Kinds Regards
Harry
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com