Hello,
the avpops and xlog module are using now same format for specifiers to
print formatted strings. avpops has a new function avp_printf(dest,
format) which stores in the AVP 'dest' the string resulted after
substitution of the specifiers from "format" parameter.
The old marker for specifiers '%' has been replaced by '$' which is more
common for variables. To specify a header or an AVP you have to use now
$hdr(header_name[index]) or $avp(avp_id[index]). The list with all
available pseudo-variables in OpenSER is posted at:
http://openser.org/docs/pseudo-variables.html
avp_printf() allow to compose a value from many parts of a SIP message,
other avps and many other values taken from system. For example:
avp_printf("i:20", "the time is $Tf, the request is a $rm and has the
from header $hdr(from)");
The documentation for avpops and xlog module has been updated on CVS,
too. Note that these features are available only on CVS head
(development version - http://openser.org/index.php#download).
Online documentation site for modules (http://openser.org/docs/) has
been split in 0.9x (stable) and 0.10.x (devel) directories.
Follows the integration of same format for pseudo-variables in textops,
acc and tm. We will appreciate any feedback.
Daniel
Hi There.
I'm using subst_uri() to make some URI transformation and is working
great:
subst_uri('/^sip:([0-9]+)@(.*)$/sip:011\1@\2/i');
Now I'm trying to insert an AVP value in the substitution but is not
working:
avp_push("011","var");
subst_uri('/^sip:([0-9]+)@(.*)$/sip:$var\1@\2/i');
When I do this the replaced URI has the string $var instead of the value of
it (011). Can I do something like this in subst_uri()? Looking at the
Textops User's guide I can see that there is some kind of parameter
association for subst_uri().
<<subst_uri().txt>>
Regards.
MaV.-
Hello guys, first of all congrats for this new idea of
openser. I completly agree with you.
I tried on june 14, the debian stable package and
found that after installing it the config file created
is openser.cfg but the program calls ser.cfg. I've
just renamed it and start working.
The other issue is that i don't know what is the mysql
password to add users using openserctl add. I tried
with heslo, but failed. So I changed the passwords on
mysql and used the command
modparam("acc", "db_url",
"mysql://user:password@localhost/openser")
but did not work.
I also tried with the FreeBSD port and compiling src,
with same results.
What can I do?
Thanks a lot for your help.
Pablo.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hello,
Has anyone experienced the above message when adding a permanent user
location via the serctl fifo interface?
I did a search and another post suggested it was due to a mismatch in
the database due to customizing SER or because of serweb but because I
haven't done anything like that, does anyone have another explanation?
Also would anyone know the exact format for setting the q value with
this command? According to previous correspondence this might be
possible ("I think the current usrloc fifo commands provide enough
flexibility to modify the q value, I don't know now the exact spelling
but something like:
serctl ul add location user@domain user@ip {expires} {q} {replicate}")
Many Thanks,
Aisling.
_______________________________________
Aisling O' Driscoll
Research Student
Centre for Adaptive Wireless Systems
Cork Institute of Technology.
Email: ashling.odriscoll(a)cit.ie
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
Hi all,
I'm writting to ask for suggestion. I'm able to communicate sip-to-sip
using SER. But when one user wants to talk with somebody in the pstn, I
receive two different errors, depending on the gateway. Look ...
This first message came from a Mera sip server.
U IP_MERA:5060 -> IP_SER:5060
SIP/2.0 415 Unsupported Media Type.
v: SIP/2.0/UDP IP_SER:5060;branch=z9hG4bKad03.0a8597a1.0.
v: SIP/2.0/UDP IP_UA:15172;branch=z9hG4bK2413941036.
Record-Route: <sip:IP_MERA:5060;maddr=38.117.22.34>.
Record-Route: <sip:IP_SER;ftag=2859935538;lr=on>.
f: "1991117" <sip:1991117@IP_SER>;tag=2859935538.
t: <sip:011543515684778@IP_SER>;tag=2eff4b002937ff10ff0000045a5b1432.
i: 6ad7a895fbb61ed09f5b2ea36b6612ce(a)192.168.1.30.
CSeq: 1 INVITE.
P-Session-Timeout: 7200.
Server: MERA MSIP v.1.0.1.
l: 0.
This one from a cisco AS5350
U IP_CISCO:5060 -> IP_SER:5060
SIP/2.0 400 Bad Request - 'Invalid SDP information'.
v: SIP/2.0/UDP IP_SER;branch=z9hG4bK2817.1aa690e7.0.
v: SIP/2.0/UDP IP_UA:15188;branch=z9hG4bK3914033240.
f: "1991117" <sip:1991117@IP_SER>;tag=2962826014.
t: <sip:3055383346@IP_SER>.
i: 332ee2e17a14427caeb2feaf2da22a3a(a)192.168.1.30.
CSeq: 2 INVITE.
P-Session-Timeout: 7200.
l: 0.
I do not get it. Why could I communicate sip-to-sip just fine, but, when
going to pstn, I receive this errors. And, moreover, they are different.
I'm only having this error with this particular user, which is behind a
router doing NAT. Do you have any ideas of what could I do to solve this
... ? Or what could be the problem ?
Best regards,
Lucas
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.7.11/26 - Release Date:
22/06/2005
hi
in my table location of SER i have a field flags, someone knows for what is?
now i have three users registered and two can call and their flags are "0"
and one can't call and is flags field is "1"
is that the reason why it don't work?
thanks
M.
Hi,
I'm trying to implement a module to Openser that should use parts of
the Osip (sip stack implementation). That module could be a "black
list", "follow me" and etc.
Did somebody implement it already?
Does somebody have an ideia how to begin to implement?
Where can I find some information about it?
Best regards,
--
Alexandre Passito
Universidade Federal do Amazonas
Departamento de Ciência da Computação
LabVoIP - GRSD
Hello,
SER includes a "Server" header in responses (for examples, in the 200 OK
responding a REGISTER when SER acting as registrar server).
Server: Sip Express router (0.8.14 (i386/linux))
Is there any way to modify or/and remove the header? I have looked through
the SIP Admin Guide (http://www.iptel.org/ser/doc/seruser/seruser.html) but
I haven't found nothing related with this.
(I know I could modify the "Server" header editing the SERVER_HDR directive
in config.h and recompile, but I think is too radical :)
Thanks in advance!
Best regards,
------
Fermín
Agora Systems, S. A.