Hello Knight,
On 3/24/07, "Knight Tiger" <caugar(a)gmail.com> wrote on behalf of
users-request(a)openser.org <users-request(a)openser.org>:
> [...]
> So the config files are okay but then openser does not start.
> [...]
Have you had a look on the logs ? There are sometimes config errors that are
not detected during the check but only at startup.
So you can try with:
debug=9
fork=no
log_stderror=yes
in your config and run openser directly (i.e. not via the init script) to get
verbose output to the console.
--
Regards,
-vma
.
Hello all,
I am attempting to add a line to the SDP of a reply using subst.
In perl I can do it like this.
$test1 =~ s/(.+)\sRTP\/AVP\s18\s(.+)/$1 RTP\/AVP 18
$2\na=fmtp:18 annexb=no\n/g;
This ensures I have the whole "m=audio 28104 RTP/AVP 18 101 19" string
in the replacement
I started with this:
subst('/(.*) RTP\/AVP 18 (.*)/\1 RTP\/AVP 18 \2\r\na=fmtp:18
annexb=no\r\n/g');
As most of you probably can see this does not work.
Does anyone know if this is possible?
Thanks.
This e-mail and any files transmitted with it are the property of AT&T
Connecticut, are confidential, and are intended solely for the use of
the individuals or entities to whom it is addressed. If you are not a
named recipient, or otherwise have reason to believe that you have
received this message in error, please notify the sender at phone
203-420-7225, and delete this message immediately from your computer.
Any other use, retention, dissemination, forwarding, printing, or
copying of this e-mail is strictly prohibited.
Hi,
When migrating my config from 1.1 to 1.2, far-end NAT traversal doesn't
work anymore. Here is what I do:
modparam("usrloc", "nat_bflag", 6)
...
# register handling:
if(!search("^Contact:[ ]*\*") && nat_uac_test("19"))
{
xlog("L_INFO", "NATed REGISTER\n");
fix_nated_register();
setbflag(6);
}
if(!save("location"))
{
# error handling
...
}
The log message is printed, so NAT is detected. The received-column in
the DB also shows the correct NAT-address, but the flag-column is always
0. Any advice?
Regards,
Andreas
This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your cooperation.
Information pursuant to paragraph 14 Austrian Companies Code: UPC Austria GmbH; Registered Office: Wolfganggasse 58-60, 1120 Vienna Company Register Number: FN 189858d at the Commercial Court of Vienna
Hi all,
I'm using exec_dset to run a script which takes the Request-URI and
returns a new Request-URI based on the number dialed.
In ser.cfg I'm doing this:
if (exec_dset("lookup.sh \"$$SIP_RURI\"")) {
# Route call
} else {
# Reply with a cause
}
Recently a customer started to use SIP-X, and his INVITES with
Request-URIs looks like this:
sip:1001@192.168.0.1:5060;sipx-noroute=Voicemail
Ser responds with "500 Server Internal Error" to these INVITEs, which is
due to that my script fails.
If I run OpenSER in the foreground with debugging I can see this:
0(20509) exec:w_exec_dset: executing [lookup.php "$SIP_RURI"]
0(20509) exec_str: rtrim
sh: line 1: sipx-noroute=Voicemail: command not found
How do I correctly escape the SIP_RURI in my openser.cfg to prevent my
script from failing? Or is the RURI to long or something? If I run my
script from commandline with the request uri, everything is fine.
Br,
/Tobias
Setup; OpenSER 1.2.0 Fresh install (no SERWEB, all the rest) running on
MySQL 5.0.22 (Ubuntu 6.06)
Two subscribers that publish status, but neither can see status of the
other... They are both in the presentity table and listed in the
watchers/active_watchers table.
When I change status in the client the following occurs on the server;
PRESENCE:update_presentity: querying presentity
PRESENCE:get_subs_dialog:querying database table = active_watchers
PRESENCE: get_subs_dialog:The query for subscribtion for [user]=
gojensen,[domain]= test-sip.uninett.no for [event]= presence returned no
result
PRESENCE:query_db_notify: Could not get subs_dialog from database
PRESENCE:update_presentity: Could not send Notify
PRESENCE: handle_publish: sip-etag: [SIP-ETag: a.1174552555.9851.2^M /31]
I looked through the archives and google very quickly and found something
about wrong record sizes and types (for postgresql)... However neither seems
to apply in my case.
Has anyone got PRESENCE module working, or more importantly, does anyone
know how to solve the above issue?
// sip:gojensen@uninett.no | h323: 004710012
pstn: +47 73 55 79 23 | fax: +47 73 55 79 01
Hello,
On 03/23/07 13:59, Asterisk Expert wrote:
> Hello Daniel,
> I just figured out. I forgot to set db url for avpops :))
> But in this case openser should not start and give error. not?
does now, thanks for reporting (just committed on svn).
> Instead it started and when executed mysql query, it crashed.
> I have one more query. I read that if we set onreply_avp_mode=1 in tm
> module, we can access avp variables in reply routes. I have done the
> same. I set some avp value in request route and update mysql db based
> on that value in reply route but I'm getting null :(
> What do you think will be the problem?
I will check it.
Cheers,
Daniel
>
>
> On 3/23/07, *Daniel-Constantin Mierla* <daniel(a)voice-system.ro
> <mailto:daniel@voice-system.ro> > wrote:
>
> Hello,
>
> i tried to reproduce, but I got no same result. If the avp is
> null, the
> returned values is false in comparisons.
>
> Could you send log messages and backtrace?
>
> Cheers,
> Daniel
>
>
> On 03/23/07 10:37, Asterisk Expert wrote:
> > Hello,
> > I'm using openser 1.2.0 . I have following section in my
> openser.cfg.
> >
> > avp_db_query("SELECT active, accountcode FROM openser_ip_auth WHERE
> > ip_addr='$src_ip'","$avp(s:active);$avp(s:accountcode)");
> > xlog("L_INFO", "\n$avp(s:active):::$avp(s:accountcode)\n");
> > if (!avp_check("$avp(s:active)","eq/1/I"))
> > {
> > xlog("L_ERR", "$si [$Tf]: $rm $fu -> $ru: REGISTER: bad
> > credentials, ask for credentials\n");
> >
> > #authentication failed
> > www_challenge("", "0");
> > setflag(1);
> > return;
> > }
> > Basically I'm doing IP based authentication. I have used the similar
> > method in version 1.1 but openser 1.2.0 crashes if the query in
> > avp_db_query returns no rows which keeps those two avp variables
> null.
> > Is this a bug or I'm doing something wrong?
> > I also tried "==" operator for comparison but it crashes whenever it
> > is trying to access one of those two variables.
> > --
> > Regards
> > Ruchir Brahmbhatt
> > Ecosmob Technologies
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users(a)openser.org <mailto:Users@openser.org>
> > http://openser.org/cgi-bin/mailman/listinfo/users
> >
>
>
>
>
> --
> Regards
> Ruchir Brahmbhatt
I'm doing sipp performance measurements with openser 1.2 and I was
surprised on how much memory the openser processes do allocate when
confronted with a high call-per-second load.
I observed the following behavior:
One sipp instance creates SIP requests that get routed through openser
and forwarded to another sipp instance running in UAS mode. The sipp
scenario looks like
INVITE ---------->
100 <----------
180 <----------
200 <----------
ACK ---------->
Pause [ 10.0s]
BYE ---------->
200 <----------
Nothing special here. The openser instance record routes the SIP
requests and forwards them in transaction stateful mode (t_relay) to the
sipp UAS instance. The routing script looks like:
route{
if (!method=="REGISTER") record_route();
if (loose_route()) route(1);
if (uri==myself) rewritehost("xx.xx.xx.xx");
route(1);
}
route[1] {
if (!t_relay()) sl_reply_error();
exit;
}
( xx.xx.xx.xx is the IP of sipp UAS)
Running sipp with a call rate of 500 cps results in 45 MB of memory
allocation per openser process after a few seconds. What could cause
this behavior, message queuing maybe? But then again having a message
queue of 40+ MB seems to be unrealistic.
And the memory consumption goes up the longer the test runs until
openser dies because of out-of-memory.
I observed the same behavior with openser 1.1 and 1.2. Is this a memory
leak or did I miss some settings? And what's the best method to debug
memory issues with openser?
thanks in advance,
Christian
Hello Users
openSER is sip proxy and registrar ,
Asterisk is as PBX, Conference and Voicemail servers,
openSER and Asterisk are in the Same N/w
Where As the UAC are in Behind the NAT,
When Astetrisk is not integrated , UAC are in Behind the NAT is working,
openSER is 192.168.2.5
Asterisk is 192.168.2.6
I'm just use rewritehost to asterisk server,
UAC ----> openSER - - - -> Asterisk (voicemail sserver ).
Please help me
--
Thanks and Regards
Ravi Prakash Sunkara
ravi.sunkara(a)hyperion-tech.com
M:+91 9985077535
www.hyperion-tech.com
Client and Parent company :- www.august-networks.com
Hello,
I'm using openser 1.2.0. I have following section in my openser.cfg.
avp_db_query("SELECT active, accountcode FROM openser_ip_auth WHERE
ip_addr='$src_ip'","$avp(s:active);$avp(s:accountcode)");
xlog("L_INFO", "\n$avp(s:active):::$avp(s:accountcode)\n");
if (!avp_check("$avp(s:active)","eq/1/I"))
{
xlog("L_ERR", "$si [$Tf]: $rm $fu -> $ru: REGISTER: bad
credentials, ask for credentials\n");
#authentication failed
www_challenge("", "0");
setflag(1);
return;
}
Basically I'm doing IP based authentication. I have used the similar method
in version 1.1 but openser 1.2.0 crashes if the query in avp_db_query
returns no rows which keeps those two avp variables null. Is this a bug or
I'm doing something wrong?
I also tried "==" operator for comparison but it crashes whenever it is
trying to access one of those two variables.
--
Regards
Ruchir Brahmbhatt
Ecosmob Technologies