hello, all
someone can tell me how i can configurate yate client
to work which openser when i make a config the account
cant register please help
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
I have two problems:
1.
I am attempting to clean up my Remote-Party-ID header so that my Polycom
UAs will display the incoming number as a number rather than as a URI.
This requires the domain to match that of the UA's server (e.g.
siptest.columbia.edu). And, I want to rewrite incoming calling numbers
from my PBX to be in 5-digit format and other US 10-digit numbers into
proper E.164 format since my PBX and at least one of my ITSPs doesn't
provide them as E.164.
So, I do a couple of subst() operations on INVITEs. What's wierd is
that one Remote-Party-ID header becomes two when it gets to the UA.
The call flow is:
INVITE r-uri <sip:10508@128.59.59.96:5060> from
<sip:9174147124@128.59.59.242> rpid <sip:9174147124@128.59.59.242>
Here's the code for the route block:
route[10] {
xlog("L_INFO","route[10] $ci: method $rm r-uri <$ru> from <$fu> rpid
<$re>\n");
# first just clean out the domain name
subst('/^(Remote-Party-ID:.*<sip:.*)@.*>(.*)$/\1(a)siptest.columbia.edu>\2/');
# now strip our numbers down to 5 digits
subst('/^(Remote-Party-ID:.*<sip:)(\+)?(1)?21285([134][0-9]{4})@/\1\2/');
# expand 10-digit NANP numbers to E.164
subst('/^(Remote-Party-ID:.*<sip:)([0-9]{10}.*$)/\1+1\2/');
# XXX dip the calling name database XXX
# ??? xlog doesn't show the result of rewriting it.
# xlog("L_INFO","route[10] RPID is now <$re>\n");
xlog("L_INFO","route[10] $ci: RPID was rewritten.\n");
return;
} #end of route[10]
After backup and restoring MySQL the accounting did not worked anymore. I
could make calls but the amount does not show up.
The problem is that o_uri has the format
sip:00 + codigo de tarifa
pero en la base de datos se esta guardando sin el 00
solamente sip:+codigo de tarifa ( la razon no la se,
no he modificado nada de eso ).
After changig in accounting
$codigo2 = "sip:".$row2->codigo;
if ( strncmp ( $codigo2, $row->o_uri, strlen($codigo2) ) == 0) {
$tarifa=$row2->tarifa;
$nombre=$row2->nombre
It works again.What is wrong???
Thanks to everybody who can help. CFM
Hi, I'm having some doubts on how to use/do some things with
dispatcher module and failure route.
I'll try to explain my problem.
On my main route block I select the destination (using ds_select_dst)
to where I want to send the message, and indicate that responses
should pass through the failure_route, I also add a header with some
things that are needed by the next proxy. On the failure route when I
get 408 Time Out I mark the previous destination and select the next
destination. until here everything goes fine. After this I want to
change the message that I'm going to send to next proxy, for this I
need to remove the header that I inserted previously on the main route
block and access the destination URI that the ds_next_dst updates.
My first doubt is that when I print the destination URI it has the
previous destination ( the one used in the main route block) but when
it relay's the message it goes to the right destination (the one
returned from ds_next_dst), Is there any reason for this ? I'm using
$du to access it, is this wrong?
My second doubt is, what sip message do I have access to in the
failure route (the one I received or the one I sent out)? I ask this
because I try to remove the header I inserted in the main route block
and it does not remove anything but when I relay the message the
header I tried to remove goes on the message.
Thanks in advance,
José Carlos Silva
Hi all,
Along my ser.cfg code I want to print a formatted message using LOG
functions like xlog implemented with xlog module of Ser. I already can
do it, but now I pretend to write in the same xlog formatted message,
some formatted text that can be splitted in multiple lines. I thought
that it could be done using \n sintax, like in C, but some testing made
me realise that it doesn't work. I also found that this isn't a problem
of xlog module of Ser, but a limitation of Syslog service because doing
a simple program like this won't result like expected:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <syslog.h>
#include <stdio.h>
int main(int argc,char ** argv){
char *message = "This is a messagea and this is the rest";
int priority = LOG_INFO | LOG_LOCAL6;
syslog(priority,"This is a message %c and this is the rest",13);
return 0;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
The output of this program results in the same line of syslog dump.
In ser.cfg if I do something like the following line, the resulting
print to syslog is still written in one line:
xlog("L_INFO", "===> received [%rm] request\n From URI: [%fu]\n");
Syslog simply ignores the \n parameter.
Is there any other way to split xlog formatted messages of ser.cfg to be
written to Syslog?
Thanks in advance,
Ricardo.
Hello List,
Can anybody tell me where to ask questions about CDRTool.
Thanks very much
Lokesh
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.14/502 - Release Date: 10/27/2006
Hello,
in case you are not following the CVS commit log messages: I just checked in a
small python script which should be able to print a dependency graph in ASCII
of the route blocks of a SER config file.
When you try to understand more complex configuration files this tool might be
helpfull. But be warned: this is still alpha code!
It will not eat your config file, but the output might not meet your
expectations :-)
If you run it with the default configuration file the output will look like
this:
./route_graph.py ../../etc/ser.cfg
Main
|
\- 1
|
\- 1
|
\- 1
|
\- 1
A more complex scenario (from a config with named routes) could look like
this:
./route_graph.py ./ser.cfg
Main
|
\- ROUTE_RPC
| |
| \- ROUTE_ERROR_REPLY
|
\- ROUTE_PROXYINIT
| |
| \- ROUTE_ERROR_REPLY
|
\- ROUTE_INDIALOG
| |
| \- ROUTE_ERROR_REPLY
| |
| \- ROUTE_ST
| |
| \- ROUTE_FORWARD
| | |
| | \- ROUTE_LI
| | |
| | \- ROUTE_RTPPROXY
| | |
| | \- ROUTE_RR
|
\- ROUTE_DOMAINPOLICY
| |
| \- ROUTE_ERROR_REPLY
|
\- ROUTE_REGISTRAR
| |
| \- ROUTE_ERROR_REPLY
|
\- ROUTE_AUTHENTICATION
| |
[... omitted bigger parts...]
Send routes
-----------
onsend
Failure routes
--------------
FAILURE_ROUTE
|
\- ROUTE_RTPPROXY
|
\- ROUTE_VOICEMAIL
| |
| \- ROUTE_SEMS
| | |
| | \- ROUTE_LI
| | |
| | \- ROUTE_RR
| |
| \- ROUTE_ERROR_REPLY
|
[... omitted bigger parts...]
Onreply routes
--------------
REPLY_ROUTE
Feedback is welcome. Patches even more! :-)
Greetings
Nils
dear sir or madame;
i enjoy to be one of the members of your great site! i think you for all
your pretty informations that you give us.
If you want to send me how to create an openser domain! because when i log a
user softphone to the openser, i see that it not log to the server! i think
that i have problem with domain name. if i must create a domain name to make
it work please send me how to do it, and if there is another way send me
too, i need your help!
for more information i have installed mysql, openser in a debian linux
platform, and all is ok.
i choose x-lite for a softphone example to log to the openser server.
your faithfully
simo
Hello,
In my ser.cfg I would like to add a lot of peers in this form:
...
if (uri=~"^sip:\*123[0-9]*@.*"){
xlog("L_INFO", "Forwarding *123 to 'other.sip.com': %fu (%ua - %is) -> %tu, %mf\n");
strip(4);
rewritehost("other.sip.com");
}
...
If I put four of them, everything is okay, ser starts and
the calls are correctly redirected.
But if I put 1000 of them:
Oct 27 02:55:57 ser ser: ERROR:lex:addstr: memory allocation error
Oct 27 02:55:57 ser last message repeated 71 times
Oct 27 02:55:57 ser ser: ERROR: mk_action: memory allocation failure
Oct 27 02:55:57 ser ser: ERROR: mk_action: memory allocation failure
Oct 27 02:55:57 ser ser: ERROR:lex:addstr: memory allocation error
Oct 27 02:55:57 ser last message repeated 12 times
Oct 27 02:55:57 ser ser: ERROR: mk_action: memory allocation failure
Oct 27 02:55:57 ser ser: ERROR: mk_action: memory allocation failure
Oct 27 02:55:57 ser ser: ERROR:lex:addstr: memory allocation error
Oct 27 02:55:57 ser last message repeated 20 times
Oct 27 02:55:57 ser ser: ERROR: mk_elem: memory allocation failure
Oct 27 02:55:57 ser ser: ERROR:lex:addstr: memory allocation error
I tried to change
#define SHM_MEM_SIZE 32
into
#define SHM_MEM_SIZE 128
in config.h, but same result.
Also, in some old doc, a config item called 'shared_mem_size', but
adding
shared_mem_size=256
in ser.cfg just leads to a
Oct 27 03:04:16 ser ser: parse error (30,1-16): syntax error
I am quite sure it's just a number to change, but where?
Thanks in advance
--
# Lol Zimmerli // S y s C o ® // http://www.sysco.ch/
Keep it right when you make it faster.
- The Elements of Programming Style (Kernighan & Plaugher)