[OpenSIPS-Users] need help on connection CDRTool to opensips

ha do haloha201 at yahoo.com
Mon Nov 29 15:22:40 CET 2010


Hi Tijimen

[ha - solved] with help from bogdan_vs: i change the sock_path = 
/tmp/opensips.sock and use the mi_datagram in opensips.cfg
callcontrol hangup calls successfull. So the callcontrol use the mi_datagram, 
right??

i still need help
> 2 opensips2 is a gateway
>    endpoint-----opensips1-------opensips2----internet-----VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?
[ha] yes,

Thank you
Ha

----- Original Message ----
From: ha do <haloha201 at yahoo.com>
To: OpenSIPS users mailling list <users at lists.opensips.org>
Sent: Thu, November 25, 2010 4:06:14 PM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi all

can anyone help me on call-control, i already try the 
mi_datagrambut i get the same error, permission denied

Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1000 at cucku.com to 
sip:00842000 at cucku.com started for maximum 60 seconds
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1000 at cucku.com to 
sip:00842000 at cucku.com connected for maximum 60 seconds
callcontrol.opensips.UNIXSocketProtocol starting on 
'/var/run/callcontrol/opensips_01.sock'
error: cannot write request to /tmp: Connection refused
error: failed to end dialog: Cannot send request to OpenSIPS
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1000 at cucku.com to 
sip:00842000 at cucku.com disconnected by call control after 60 seconds, call price 

is 0.0998

prepaid account 100 has only 60s to connect the call, and after 60s callcontrol 
cannot disconnected call

the mi_fifo located in /tmp

and opensips.cfg with fifo config
# ----- mi_fifo params -----
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam("mi_fifo", "fifo_mode", 0600)
modparam("mi_fifo", "fifo_group", 0)
modparam("mi_fifo", "fifo_group", "root")
modparam("mi_fifo", "fifo_user", 0)
modparam("mi_fifo", "fifo_user", "root")

and the callcontrol config.ini
[CallControl]
group           = root
[OpenSIPS]
socket_path = /tmp
;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i need 100 
terminated i need to increase to 100, right???

how to fix the issue

thank you
Ha



----- Original Message ----
From: ha do <haloha201 at yahoo.com>
To: OpenSIPS users mailling list <users at lists.opensips.org>
Sent: Wed, November 17, 2010 10:07:16 AM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi Tijimen


sorry for late reply


> 2 opensips2 is a gateway
>    endpoint-----opensips1-------opensips2----internet-----VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?
[ha] yes,



> i just try to see what happen in cdrtool, call from subscriber to subscriber
> 
> these are the logs
> Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000
> CallId=1289463574-3016-HIEP-PC at 192.168.1.36 From=sip:843000 at 192.168.1.39
> Gateway=192.168.1.36 To=sip:00842000 at 192.168.1.39
> Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid
> CallId=1289463574-3016-HIEP-PC at 192.168.1.36 BillingParty=843000 at 192.168.1.39
> 
> log of call-control
> Call id 1289463575-3016-HIEP-PC at 192.168.1.36 of 843000 at 192.168.1.39 to
> sip:00842000 at 192.168.1.39 is postpaid not limited
> 
> it always return postpaid
You need to specify that a sip account is prepaid if you want it to act like a 
prepaid account.

[ha] it is done and work perfectly except 1 thing

Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1000 at cucku.com to 
sip:00842000 at cucku.com started for maximum 60 seconds
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1000 at cucku.com to 
sip:00842000 at cucku.com connected for maximum 60 seconds
callcontrol.opensips.UNIXSocketProtocol starting on 
'/var/run/callcontrol/opensips_01.sock'
error: cannot write request to /tmp: Connection refused
error: failed to end dialog: Cannot send request to OpenSIPS
Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1000 at cucku.com to 
sip:00842000 at cucku.com disconnected by call control after 60 seconds, call price 


is 0.0998

prepaid account 100 has only 60s to connect the call, and after 60s callcontrol 
cannot disconnected call

the mi_fifo located in /tmp

and opensips.cfg with fifo config
# ----- mi_fifo params -----
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam("mi_fifo", "fifo_mode", 0600)
modparam("mi_fifo", "fifo_group", 0)
modparam("mi_fifo", "fifo_group", "root")
modparam("mi_fifo", "fifo_user", 0)
modparam("mi_fifo", "fifo_user", "root")

and the callcontrol config.ini
[CallControl]
group           = root
[OpenSIPS]
socket_path = /tmp
;max_connections = 10 -- does it disconnect 10 calls in 1 time, if i need 100 
terminated i need to increase to 100, right???

how to fix the issue


Thank you
Ha`

----- Original Message ----
From: Tijmen de Mes <tijmen at ag-projects.com>
To: OpenSIPS users mailling list <users at lists.opensips.org>
Sent: Mon, November 15, 2010 4:11:20 PM
Subject: Re: [OpenSIPS-Users] need help on connection CDRTool to opensips

Hi,

> 
> The following steps are performed to rate a CDR:
> 
> 1. Determination of the billing party
> a. SIP account user at domain
> b. SIP domain of the SIP account
> c. Source IP of the session
>    d. Default (when none of the above matches)
> if there is no sip account user at domain in cdrtool the cdrtool try next
> option(sip domain) if sip domain does not exist it try next option(source 
>ip)and
> then the default option
> please let me know if i am wrong
This is correct.

> 2. Determination of the destination id
> a. CanonicalURI (the destination after all lookups inside the SIP Proxy)
> b. SipTranslatedRequestURI (the Request URI as presented by the SIP UA)
> c. CalledStationId (the content of the To header, used as a last resort)
> if the CanonicalURI does not exist it try to next option(Request URI) ...
> please let me know if i am wrong
This is also correct.

> 3. Determination of the costs
> 2 opensips2 is a gateway
>    endpoint-----opensips1-------opensips2----internet-----VOIP service 
provider
So basically opensips2 is just a gateway to opensips1?

> 
> how can i config cdrtool rating all calls from opensips1 and opensips2
> could you please guide me some steps to do
Did you load the sample data so you can see if a call gets rated?

> 
> i just try to see what happen in cdrtool, call from subscriber to subscriber
> 
> these are the logs
> Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime Duration=36000
> CallId=1289463574-3016-HIEP-PC at 192.168.1.36 From=sip:843000 at 192.168.1.39
> Gateway=192.168.1.36 To=sip:00842000 at 192.168.1.39
> Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid
> CallId=1289463574-3016-HIEP-PC at 192.168.1.36 BillingParty=843000 at 192.168.1.39
> 
> log of call-control
> Call id 1289463575-3016-HIEP-PC at 192.168.1.36 of 843000 at 192.168.1.39 to
> sip:00842000 at 192.168.1.39 is postpaid not limited
> 
> it always return postpaid
You need to specify that a sip account is prepaid if you want it to act like a 
prepaid account.

--
Tijmen de Mes
AG Projects


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



      

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



      

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



      



More information about the Users mailing list