[OpenSIPS-Users] Call-control exception with custom scenario
Dan Pascu
dan at ag-projects.com
Fri Nov 6 11:16:09 CET 2009
That is a typo in the code. Edit callcontrol/controller.py and on line
303 replace valueError with ValueError (capital V). Will be fixed in
the next release.
On 6 Nov 2009, at 11:28, Carlo Dimaggio wrote:
> Hi all,
>
> I'm experiencing with a Call Control exception and a custom scenario:
> - User 1002 at domain1.sip.xxx.it calls number 00390832097193 (dbaliased
> to 65310193 at domain2.sip.xxx.it)
> - 65310193 at domain2.sip.xxx.it has a call redirect to 1000 at domain1.sip.xxx.it
> - Finally 1002 at domain1.sip.xxx.it calls user 1000 at domain1.sip.xxx.it
> - The billing party is 65310193 at domain2.sip.xxx.it (the problem arise
> either with postpaid or prepaid)
>
>
> My syslog shows:
>
> Call control log:
>
> Nov 6 10:15:55 sip call-control[2657]: Call id 35436eb2766e5f7f of 1002 at domain1.sip.xxx.it
> to sip:1000 at domain1.sip.xxx.it is postpaid not limited
> Nov 6 10:15:55 sip call-control[2657]: error: Unhandled error in
> Deferred:
> Nov 6 10:15:55 sip call-control[2657]: Traceback (most recent call
> last):
> Nov 6 10:15:55 sip call-control[2657]: File "/usr/lib/python2.5/
> site-packages/twisted/internet/defer.py", line 328, in _runCallbacks
> Nov 6 10:15:55 sip call-control[2657]: self.result =
> callback(self.result, *args, **kw)
> Nov 6 10:15:55 sip call-control[2657]: File "/usr/lib/pymodules/
> python2.5/callcontrol/sip.py", line 185, in _setup_finish_calllimit
> Nov 6 10:15:55 sip call-control[2657]: deferred.callback(None)
> Nov 6 10:15:55 sip call-control[2657]: File "/usr/lib/python2.5/
> site-packages/twisted/internet/defer.py", line 243, in callback
> Nov 6 10:15:55 sip call-control[2657]:
> self._startRunCallbacks(result)
> Nov 6 10:15:55 sip call-control[2657]: File "/usr/lib/python2.5/
> site-packages/twisted/internet/defer.py", line 312, in
> _startRunCallbacks
> Nov 6 10:15:55 sip call-control[2657]: self._runCallbacks()
> Nov 6 10:15:55 sip call-control[2657]: --- <exception caught here>
> ---
> Nov 6 10:15:55 sip call-control[2657]: File "/usr/lib/python2.5/
> site-packages/twisted/internet/defer.py", line 328, in _runCallbacks
> Nov 6 10:15:55 sip call-control[2657]: self.result =
> callback(self.result, *args, **kw)
> Nov 6 10:15:55 sip call-control[2657]: File "/usr/lib/pymodules/
> python2.5/callcontrol/controller.py", line 206, in _CC_finish_init
> Nov 6 10:15:55 sip call-control[2657]:
> self.factory.application.clean_call(req.callid)
> Nov 6 10:15:55 sip call-control[2657]: File "/usr/lib/pymodules/
> python2.5/callcontrol/controller.py", line 303, in clean_call
> Nov 6 10:15:55 sip call-control[2657]: except valueError:
> Nov 6 10:15:55 sip call-control[2657]: exceptions.NameError: global
> name 'valueError' is not defined
>
> Cdrtool log:
>
> Nov 6 10:15:55 mproxy1 cdrtool[10373]: DebitBalance Duration=0
> CallId=35436eb2766e5f7f From=sip:1002 at domain1.sip.xxx.it
> Gateway=10.0.6.32 To=sip:00390832097193 at domain1.sip.xxx.it:5060
> Nov 6 10:15:55 mproxy1 cdrtool[10373]: MaxSessionTime Duration=36000
> CallId=35436eb2766e5f7f From=sip:65310193 at domain2.sip.xxx.it
> Gateway=10.0.6.32 To=sip:1000 at domain1.sip.xxx.it
>
>
> What can be tha cause for this exception? In other cases all the
> process is ok...
>
> Thanks and regards,
> Carlo
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Dan
More information about the Users
mailing list