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 1...@cucku.com to sip:00842...@cucku.com started for maximum 60 seconds Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to sip:00842...@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 1...@cucku.com to sip:00842...@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 <haloha...@yahoo.com> To: OpenSIPS users mailling list <users@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...@192.168.1.36 From=sip:843...@192.168.1.39 > Gateway=192.168.1.36 To=sip:00842...@192.168.1.39 > Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid > callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39 > > log of call-control > Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to > sip:00842...@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 1...@cucku.com to sip:00842...@cucku.com started for maximum 60 seconds Call id NTJjNzY1NzI1MzgwNmQ2MmU4NDMxMWIzZDgzNWFkOTI. of 1...@cucku.com to sip:00842...@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 1...@cucku.com to sip:00842...@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 <tij...@ag-projects.com> To: OpenSIPS users mailling list <users@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 u...@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 u...@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...@192.168.1.36 From=sip:843...@192.168.1.39 > Gateway=192.168.1.36 To=sip:00842...@192.168.1.39 > Nov 11 12:39:46 opensips cdrtool[2302]: MaxSessionTime=unlimited Type=postpaid > callid=1289463574-3016-hiep...@192.168.1.36 billingparty=843...@192.168.1.39 > > log of call-control > Call id 1289463575-3016-hiep...@192.168.1.36 of 843...@192.168.1.39 to > sip:00842...@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@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users