Hello,
Even if I made a Kamailio config script easier and I use cnxcc_set_max_time, the call is not ended at the end of the number of seconds specified. Did I missed something?
Regards,
Igor.
De : Igor Potjevlesch [mailto:igor.potjevlesch@gmail.com]
Envoyé : mardi 25 octobre 2016 12:50
À : miconda@gmail.com
Cc : 'Kamailio (SER) - Users Mailing List' <sr-users@lists.sip-router.org>
Objet : RE: [SR-Users] app_perl modifies Via header?
Hello Daniel,
No action executed related to app_perl. I have tested with the following configuration:
# -------- dialog params -------
modparam("dialog", "dlg_flag", DLG_FLAG)
# -------- cnxcc params --------
modparam("cnxcc", "dlg_flag", CC_FLAG)
modparam("cnxcc", "credit_check_period", 1)
# --------- app_perl params ----
modparam("app_perl", "filename", "/usr/local/etc/kamailio/AAA/aaa-script.pl")
modparam("app_perl", "modpath", "/usr/local/lib64/kamailio/perl/")
Then, in Kamailio.cfg, nothing called the app_perl module.
The INVITE is coming with one Via header. Then, the call is routed to a gateway and when Kamailio append the forked INVITE with his Via header, he is malformed.
If I print "route[RELAY] {
xlog("ENTERING RELAY routes: $(hdr(Via)[*])\n");" the result is fine in the log. But looking at a tcpdump, I can see that the outgoing packets has a malformed Via header.
Regards,
Igor.
De : sr-users [mailto:sr-users-bounces@lists.sip-router.org] De la part de Daniel-Constantin Mierla
Envoyé : mardi 25 octobre 2016 11:10
À : Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org>
Objet : Re: [SR-Users] app_perl modifies Via header?
Hello,
this should not happen -- is any config action executed, or this happen before first action in request_route being executed? You can add an xlog there to see if it is executed.
Cheers,
Daniel
On 25/10/16 09:49, Igor Potjevlesch wrote:
Hello,
Someone experienced the same issue? I test again and I'm sure that it happens when I load and setup the module app_perl. Even if it's not used into the config file.
Regards,
Igor.
De : Igor Potjevlesch [mailto:igor.potjevlesch@gmail.com]
Envoyé : lundi 24 octobre 2016 15:58
À : sr-users@lists.sip-router.org
Objet : app_perl modifies Via header?
Hello,
I try to use app_perl and cnxcc module.
As soon as I load the module like this:
# --------- app_perl params ----
modparam("app_perl", "filename", "/usr/local/etc/kamailio/AAA/aaa-script.pl")
modparam("app_perl", "modpath", "/usr/local/lib64/kamailio/perl/")
The Via header is modified for each calls:
/usr/local/sbin/kamailio[21064]: INFO: <core> [parser/msg_parser.c:355]: parse_headers(): ERROR: bad header field [Via:ASIP/2.0/UDP 91.]
/usr/local/sbin/kamailio[21064]: ERROR: <core> [parser/parse_via.c:2048]: parse_via(): ERROR: parse_via: bad char <A> on state 100
What could explain this behaviour?
Regards,
Igor.
_______________________________________________SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Oct 24-26, 2016 - http://www.asipto.com