Thanks Sammy. I didn't get any reply yet.
CallControl is an application used with CDRTool for prepaid calls. It
calculates the maximum call duration based on the user's balance. Once the
call's duration limit is reached, it sends BYE to both calling parties,
terminating the call. At the end of a prepaid call, terminated either by
the user or by CallControl, it debits the user's balance according to the
call's duration.
The Call_Control module interfaces with this external application.
call_control function is called in Kamailio's cfg to check if the user has
prepaid or postpaid account, and get the max call duration for prepaid
users. CallControl controls only prepaid calls, not postpaid ones.
So call control and NAT traversal using mediaproxy are two differents
things which i can't link, since I don't want mediaproxy for every call.
And since the function call_control is called on every invite before
knowing if the user has a prepaid account or not, it engages mediaproxy for
every call.
CallControl relies on mediaproxy to detect RTP timeouts and debit the
correct balance from a prepaid account based on the last instant the
mediaproxy saw an RTP packet.
But why to force using mediaproxy with no choice? And why to force it for
every call, whether it falls under CallControl's control or not?
I am using Kamailio 3.2.
Reda
On 23 févr. 2012, at 07:21, Sammy Govind <govoiper(a)gmail.com> wrote:
Hi,
I can see you posting multiple times on both proxies listings so I'm sure
you havent heard back from anyone.I am not at all familiar with your
functions in email but could it be possible for you to determine on which
calls you need to engage mediaproxy and on which not to, then on the base
of that flag use the call_control function !
your problem is complicated for me atleast. I hope somebody could answer
you accurately and precisely.
btw, what are you using in real? opensips or kamailio, which version? and
in what context you need to use the call_control function?
Thanks,
Sammy
On Thu, Feb 23, 2012 at 12:45 AM, Reda Aouad <reda.aouad(a)gmail.com> wrote:
Hi,
When I use the function call_control( ) of the call_control module, it
automatically engages mediaproxy if it finds the mediaproxy module loaded.
If the mediaproxy module is not loaded, call_control doesn't even try to
engage it.
I need mediaproxy for NAT traversal in some cases, but don't want it to be
engaged on every call.
How can I disable this behavior?
Thanks
Reda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users