[Freeswitch-users] mod_nibblebill issue - channel is not initialized for billing

Ali Jawad ali.jawad at splendor.net
Tue Apr 10 18:00:38 MSD 2012


Hi
I have a kamailio server that sends calls to FS, calls then get routed to a
VOIP provider. This works just fine, but calls dont get billed and it seems
billing is not initialized for the calls at hand

Below is the output for the FS console for such a call :

freeswitch at fs-100-151> 2012-04-10 13:52:16.102555 [NOTICE]
switch_channel.c:926 New Channel sofia/internal/support1 at Kamailio.IP
[e41ebdb3-eac2-4104-bad2-ed802bb8e26f]
2012-04-10 13:52:16.102555 [INFO] mod_dialplan_xml.c:485 Processing
support1 <support1>->0091111111 in context public
2012-04-10 13:52:16.102555 [NOTICE] switch_ivr.c:1717 Transfer
sofia/internal/support1 at kamailio.ip to XML[009611111111 at default]
2012-04-10 13:52:16.102555 [INFO] mod_dialplan_xml.c:485 Processing
support1 <support1>->009611111111 in context default
2012-04-10 13:52:16.122486 [NOTICE] switch_channel.c:926 New Channel
sofia/external/85719611111111 [92118bd1-cddd-4854-b303-2525212961f6]
2012-04-10 13:52:17.503477 [NOTICE] sofia_glue.c:4040 Pre-Answer
sofia/external/85719611111111!
2012-04-10 13:52:17.503477 [INFO] switch_ivr_originate.c:3215 Sending early
media
2012-04-10 13:52:17.503477 [NOTICE] mod_sofia.c:2585 Pre-Answer
sofia/internal/support1 at kamailio.ip!
2012-04-10 13:52:17.863305 [INFO] switch_rtp.c:3207 Auto Changing port from
ip1:56854 to ip2:56854
2012-04-10 13:52:20.143135 [NOTICE] sofia.c:6214 Channel
[sofia/external/12349611111111] has been answered
2012-04-10 13:52:20.163119 [NOTICE] switch_ivr_bridge.c:417 Channel
[sofia/internal/support1 at Kamailio.IP] has been answered

I did check the active calls and checked billing status it says not
initialized for call, see :

freeswitch at fs-100-151> nibblebill e41ebdb3-eac2-4104-bad2-ed802bb8e26f check


2012-04-10 13:53:44.602951 [INFO] mod_nibblebill.c:759 Can't check -
channel is not initialized for billing!

Unloading and loading mod_nibblebill occurs without any errors, see :

freeswitch at fs-100-151> unload mod_nibblebill

+OK

2012-04-10 13:57:05.043193 [NOTICE] switch_loadable_module.c:910 Deleting
Application 'nibblebill'
2012-04-10 13:57:05.043193 [NOTICE] switch_loadable_module.c:963 Deleting
API Function 'nibblebill'
2012-04-10 13:57:05.043193 [CONSOLE] switch_loadable_module.c:1784
Stopping: mod_nibblebill
2012-04-10 13:57:05.043193 [NOTICE] switch_event.c:1935 Event Binding
deleted for mod_nibblebill:SESSION_HEARTBEAT
2012-04-10 13:57:05.043193 [CONSOLE] switch_loadable_module.c:1804
mod_nibblebill unloaded.
freeswitch at fs-100-151> load mod_nibblebill
2012-04-10 13:57:09.462673 [INFO] mod_nibblebill.c:228 Connected ODBC DSN:
bandwidth.com
2012-04-10 13:57:09.462673 [CONSOLE] switch_loadable_module.c:1318
Successfully Loaded [mod_nibblebill]
2012-04-10 13:57:09.462673 [NOTICE] switch_loadable_module.c:254 Adding
Application 'nibblebill'
2012-04-10 13:57:09.462673 [NOTICE] switch_loadable_module.c:298 Adding API
Function 'nibblebill'

+OK Reloading XML
+OK

freeswitch at fs-100-151> 2012-04-10 13:57:09.462673 [INFO] mod_enum.c:812
ENUM Reloaded
2012-04-10 13:57:09.462673 [INFO] switch_time.c:1128 Timezone reloaded 530
definitions

My dialplan includes the following :

<include>
        <extension name="Dial Out to Custom GW">
                <condition field="destination_number"
expression="(\d{10})$">
                        <action application="set"
data="nibble_account=${accountcode}"/>
                        <action application="set" data="nibble_rate=0.30"/>
                        <action application="bridge"
data="sofia/gateway/custom/1234$1"/>
                </condition>
        </extension>
</include>

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120410/cdf74853/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list