[Freeswitch-users] nibblebill never hangs up
Rupa Schomaker
rupa at rupa.com
Thu May 20 11:23:18 PDT 2010
This one is a bit tricky, I did some research to figure out whats up.
Basically, you can't set the nibble_* vars in the same extension as the call
to bridge due to the order in which the module is called. The set happens
too late for mod_nibblebill to act on.
You have two options:
Use inline=true on the set -- this causes the var to be set early enough
that mod_nibblebill can act on it
or
after setting transfer to an extension that does the bridge.
Or you can export hte vars and use b-leg nibble billing. but that is another
story.
On Thu, May 20, 2010 at 5:53 AM, Shrouk Khan <shroukkhan at softverk.is> wrote:
> finally in the dial plan :
>
> <extension name="ToIcelandPBX.58d2" >
> <condition field="destination_number" expression="^(58.*)">
> <action application="set" data="$${nibble_account}"/>
> </condition>
>
This set is uselss. but it is already set by the directory so... no
biggie.
> <condition field="destination_number" expression="^(5807)$">
> <action application="set" data="nibble_rate=30"/>
>
This set is evaluated too late for nibblebill to hook the session. Change
to:
<action application="set" data="nibble_rate=30" inline="true"/>
> <action application="bridge" data="sofia/gateway/ToIcelandPBX/$1"/>
> </condition>
>
> <condition field="destination_number" expression="^(5812)$">
> <action application="set" data="nibble_rate=15"/>
>
same
> <action application="bridge" data="sofia/gateway/ToIcelandPBX/$1"/>
> </condition>
>
> </extension>
>
>
> right now the Cash balance for the extension is -192.00 and the extension
> can still make calls jsut fine.
> Am I missing something here ?
>
> --
> Regards
>
> Shrouk Khan (Khan)
>
>
>
--
-Rupa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100520/de23e985/attachment.html
More information about the FreeSWITCH-users
mailing list