Hi to all,
I could hardly make kamailio log cdr to db but it just logs successful calls.I need cdr of unsuccessful calls also.I used to use asterisk so in cdr I need duration and billsec separately.As far as I understand kamailio can give only one of them.Is there a way to get them?
Here is my acc configuration:
#!ifdef WITH_ACCDB
modparam("acc", "cdr_enable", 1)
modparam("acc", "early_media", 0)
modparam("acc", "report_ack", 1)
modparam("acc", "report_cancels", 1)
modparam("acc", "detect_direction", 0)
modparam("acc", "db_url", "mysql://root: secret@localhost/mydb")
modparam("acc", "log_flag", FLT_ACC)
modparam("acc", "db_missed_flag", FLT_ACCMISSED)
modparam("acc", "db_table_missed_calls", "missed_calls")
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 3)
modparam("acc", "db_extra","src_user=$fU;src_domain=$fd;src_ip=$si;dst_user=$rU;dst_domain=$rd")
#!endif
What should I exactly do?Can someone help?
Thanks in Advance.
BETÜL CERİT
Kamailio (192.168.182.1) and Asterisk (192.168.182.24) realtime integration
by
http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb.
Kamailio have a public interface also.
Grep from debug on kamailio 4.2.1 on call from asterisk extensions/peers:
Mar 19 14:51:50 netbox /usr/sbin/kamailio[547784]: DEBUG: usrloc
[udomain.c:602]: db_load_urecord(): aor 101(a)192.168.182.1 not found in
table location
Mar 19 14:51:50 netbox /usr/sbin/kamailio[547784]: DEBUG: registrar
[lookup.c:158]: lookup(): '101(a)192.168.182.1' Not found in usrloc
Mar 19 14:51:50 netbox /usr/sbin/kamailio[547785]: DEBUG: usrloc
[udomain.c:602]: db_load_urecord(): aor 102(a)192.168.182.1 not found in
table location
Mar 19 14:51:50 netbox /usr/sbin/kamailio[547785]: DEBUG: registrar
[lookup.c:158]: lookup(): '102(a)192.168.182.1' Not found in usrloc
Kamailio forwards registration to Asterisk and store location of peer with
domain name sip.domain.tld. But Asterisk dials peer to peer in local
dialplan - to IP of kamailio.
asterisk1*CLI> sip show peers
Name/username Host Dyn
Forcerport Comedia ACL Port Status
Description Realtime
101/101 192.168.182.1 D
No No A 5060
Unmonitored Cached RT
102/102 192.168.182.1 D
No No A 5060
Unmonitored Cached RT
asterisk1*CLI> sip show peer 102
* Name : 102
Description :
Realtime peer: Yes, cached
Secret : <Not set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : ext-local
Record On feature : automon
Record Off feature : automon
Subscr.Cont. : <Not set>
Language :
Tonezone : <Not set>
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
FromUser : 102
FromDomain : sip.domain.com Port 5060
Callgroup :
Pickupgroup :
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox :
VM Extension : asterisk
LastMsgsSent : 6/0
Call limit : 0
Max forwards : 0
Dynamic : Yes
Callerid : "" <>
MaxCallBR : 384 kbps
Expire : 252
Insecure : no
Force rport : No
Symmetric RTP: No
ACL : Yes
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: -1
DirectMedia : Yes
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Path support : No
Path : N/A
Subscriptions: Yes
Overlap dial : No
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : 192.168.182.1:5060
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: 102
SIP Options : (none)
Codecs : (gsm|ulaw|alaw|h263|testlaw)
Codec Order : (none)
Auto-Framing : No
Status : Unmonitored
Useragent : kamailio (4.1.2 (x86_64/linux))
Reg. Contact : sip:102@192.168.182.1:5060
Qualify Freq : 60000 ms
Keepalive : 0 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
/etc/asterisk/extensions.conf:
...
[ext-local]
; our phones use 3 digit extensions, starting with 1
exten => _1XX,1,DumpChan(verbose)
exten => _1XX,n,Dial(SIP/${EXTEN})
exten => _1XX,n,Voicemail(${EXTEN},u)
exten => _1XX,n,Hangup
exten => _1XX,101,Voicemail(${EXTEN},b)
exten => _1XX,102,Hangup
Also strabge why I see user.pub.lic in Variables on channel during call:
...
SIPCALLID=GOB1.VSLU0SOTjG-u8jjarzXv.lJTjin
SIPDOMAIN=netbox.teleservice.com.ua
SIPURI=sip:101@user.pub.lic.ip:35835
Do I need rewrite To header with change IP to domain name? Maybe in this
section:
#!ifdef WITH_ASTERISK
# Test if coming from Asterisk
route[FROMASTERISK] {
if($si==$sel(cfg_get.asterisk.bindip)
&& $sp==$sel(cfg_get.asterisk.bindport))
return 1;
return -1;
}
Hi!
I am not used to manage the software upgrade and I would like to have a more detailed explanation… I've searched in the web and in the mailing list but I need a more step-by-step explanation for newbie that what I found.
I downloaded the kamailio version 4.0.1 some time ago (http://www.kamailio.org/pub/kamailio/latest/src/) when it was latest release. I untar it on /opt/kamailio-4.0.2 and did make FLAVOUR=kamailio include_modules="db_mysql " cfg, Make all and make install.
Now I would like to upgrade to the 4.1.2 version but I am not sure how.
When you say: " just replace the binaries." What do you mean? Should I delete the /opt/kamailio-4.0.2 folder and untar the (http://www.kamailio.org/pub/kamailio/latest/src/) on a new /opt/kamailio-4.1.2 and make again?
Should I remove anything else? I have modified the config file, and the kamctlrc to use mysql as dbengine.
Then after making it should I execute the sql script for adapting the db? And then connecting it by modifying the config file?
I am sorry if that seems a really silly question but I'd appreciate a really step by step guide help!
Thanks in advanced
Helena
-----Original Message-----
From: sr-users-bounces(a)lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Moritz Graf
Sent: jueves, 05 de diciembre de 2013 13:48
To: mohammed alyaseen; Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Ugrade Kamailio 4.0.4 to 4.1.0
Hi Medo,
just replace the binaries.
see
http://www.kamailio.org/w/kamailio-v4-1-0-release-notes/http://www.kamailio.org/wiki/install/4.1.x/git
greetz
ps i assume u mean [...]to the new version 4.1.0 or Do I [...]
Am 05.12.2013 10:29, schrieb mohammed alyaseen:
> Hello
>
> I am using kamailio 4.0.4. I want to change to kamailio 4.1.0. Can the
> version 4.0.4 be upgraded to the new version 4.0.4 or Do I have to
> uninstall it and install the 4.1.0?
>
> Thanks in advance
>
> Medo
--
Moritz Graf, B.Sc.
Betrieb NGN-Plattform
G-FIT GmbH & Co. KG
Greflingerstr. 26, 93055 Regensburg
Telefon +49 (9 41) 69 85 - 1 86
Telefax +49 (9 41) 69 85 - 2 86
mailto:moritz.graf@g-fit.de
http://www.g-fit.de
G-FIT Gesellschaft für innovative Telekommunikationsdienste mbH & Co.
KG, Kommanditgesellschaft, Sitz Regensburg, Registergericht Regensburg, HRA 7626; Geschäftsführer: Dipl.Inf. (FH) Alfred Rauscher
Hi Alex,
Please let me make a comment here in support of Abdul Hakeem's comment in
respect of Kamailio supporting a SIP to SMPP translation module and in
furtherance of this thread (conversation).
I believe Kamailio, as an open source community would glean the benefit of
supporting a feature that could see better funded players use Kamailio, with
SIP to SMPP, as an alternative strategy to supporting proprietary solutions.
As networks look towards 4G technology the support of such a feature could
see Kamailio used as a gateway between the origination technology and the
legacy SMSC gateway. This is a solution, I believe, many will need to
consider looking forward.
Best Regards,
Peter Reid
Morodo Operations Director
Manager - Mobile Software Development - ET
Mob: +34603002300
E-mail: peter.reid(a)morodo.co.uk
04-04-2013 9-12-55Morodo Limited
<mailto:support@morodo.co.uk> support(a)morodo.co.uk /
<http://www.mo-call.com> www.mo-call.com
Place of Registration: Companies House, England & Wales / Registered Office:
7 Breasy Place, 9 Burroughs Gardens Hendon, London NW4 4AU
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
Hi,
I am working on an educational research project, regarding IMS. I want to
capture IMS request from IMS client and compare it with my defined rules.
If the request satisfy my rules then it will be forwarded to IMS core.
Could you please tell me, where i can do changing in IMS server and
accomplish my goal.
I am currently looking in files on following link.
http://svn.berlios.de/svnroot/repos/openimscore/
Thanks in advance
--
Best Regards
Muhammad Nadeem
International Islamic University Islamabad
Hi List
i'm trying config sip with tls module, my config for module in kamailio.cfg
is this:
#!ifdef WITH_TLS
# ----- tls params -----
modparam("tls", "config", "/etc/kamailio/tls.cfg")
#!endif
in tls.cfg is this:
[server:192.168.1.1:5061]
method = SSLv23
verify_certificate = no
require_certificate = no
private_key = /etc/kamailio/key.pem
certificate = /etc/kamailio/cert.pem
[client:default]
verify_certificate = no
require_certificate = no
But when a reload kamailio
i get the follow error:
Mar 18 16:36:50 softswitch /usr/sbin/kamailio[23330]: ERROR: tls
[tls_domain.c:906]: load_private_key(): TLSs<default>: Unable to load
private key file '/etc/kamailio/cert.pem'
Why try to find '/etc/kamailio/cert.pem' for a private key??
When I attempted to login to siremis , i got the following errors "Base table
or view not found: 1146 Table 'siremis.user' doesn't exist"
And then I created the table manually using the following commands
CREATE TABLE `user` (
`SYSID` int(11) NOT NULL auto_increment,
`USERID` varchar(15) NOT NULL,
`PASSWORD` varchar(15) default NULL,
PRIMARY KEY (`SYSID`)
);
But I still have problem login with the following error "Column not
found: 1054 Unknown column 'T0.id' in 'field list'".
The I run describe user, i got the following;
mysql> describe user;
+----------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+-------------+------+-----+---------+----------------+
| SYSID | int(11) | NO | PRI | NULL | auto_increment |
| USERID | varchar(15) | NO | | NULL | |
| PASSWORD | varchar(15) | YES | | NULL | |
+----------+-------------+------+-----+---------+----------------+
3 rows in set (0.07 sec)
Any idea?
Your help is greatly appreciated
Thanks
Abdul
I'm trying to handle a redirect with get_redirects(). It seems that
Kamailio is ignoring the maddr param on the contact header. Is there a way
to force maddr to be used?
The Contact header on the 302 looks like this:
<sip:2404441112@domain.com:5060
;maddr=1.1.1.1>;q=0.5,<sip:2404441112@comain.com:5060;maddr=2.2.2.2>;q=0.25
The message is then being sent to domain.com, rather than 1.1.1.1.
Hi,
I am working on an educational research project, regarding IMS. I want to
capture IMS request from IMS client and compare it with my defined rules.
If the request satisfy my rules then it will be forwarded to IMS core.
Could you please tell me, where i can do changing in IMS server and
accomplish my goal.
I am currently looking in files on following link.
http://svn.berlios.de/svnroot/repos/openimscore/
Thanks in advance
--
Best Regards
Muhammad Nadeem
Muhammad Ali Jinnah University