Hi,
I have the following scenario:
User A --- PSTN -- a2Billing -- User B (SIP)
User B calls to User A.
At the end of the call, it is only billed if the user who hangs the call up is user A, not B.
The main difference is that when user B hangs up, we never receive an answer to AGI Tx >> 200 result=-1CLI>
but when user A hangs up, we have: AGI Tx >> 200 result=-1CLI> AGI Rx << GET VARIABLE ANSWEREDTIME AGI Tx >> 200 result=1 (5)> AGI Rx << GET VARIABLE DIALSTATUS AGI Tx >> 200 result=1 (ANSWER) AGI Rx << HANGUP-nuevo*CLI> AGI Tx >> 200 result=1*CLI>
When User A hangs up:
AGI Rx << EXEC DIAL SIP/provider/666666666|60|HRL(2147483647:61000:30000) -- AGI Script Executing Application: (DIAL) Options: (SIP/provider/66666666|60|HRL(2147483647:61000:30000)) -- Limit Data for this call: > timelimit = 2147483647 > play_warning = 61000 > play_to_caller = yes > play_to_callee = no > warning_freq = 30000 > start_sound = (null) > warning_sound = timeleft > end_sound = (null) -- Called provider/66666666 -- SIP/provider-0075ab20 is making progress passing it to SIP/B-540bbfe0 -- SIP/provider-0075ab20 answered SIP/B-540bbfe0 -- Executing [h@a2billing:1] Hangup("SIP/B-540bbfe0", "") in new stack == Spawn h extension (a2billing, h, 1) exited non-zero on 'SIP/B-540bbfe0' AGI Tx >> 200 result=-1CLI> AGI Rx << GET VARIABLE ANSWEREDTIME AGI Tx >> 200 result=1 (5)> AGI Rx << GET VARIABLE DIALSTATUS AGI Tx >> 200 result=1 (ANSWER) AGI Rx << HANGUP-nuevo*CLI> AGI Tx >> 200 result=1*CLI> == Spawn extension (a2billing, 34666666666, 2) exited non-zero on 'SIP/B-540bbfe0'
Any ideas?
Regards
I attach detailed debug:
When user B hangs up:
AGI Rx << EXEC DIAL SIP/provider/666666666|60|HRL(2147483647:61000:30000) -- AGI Script Executing Application: (DIAL) Options: (SIP/provider/666666666|60|HRL(2147483647:61000:30000)) -- Limit Data for this call: > timelimit = 2147483647 > play_warning = 61000 > play_to_caller = yes > play_to_callee = no > warning_freq = 30000 > start_sound = (null) > warning_sound = timeleft > end_sound = (null) -- Called provider/666666666 -- SIP/provider-0075ab20 is making progress passing it to SIP/B-540bf000 -- SIP/provider-0075ab20 answered SIP/B-540bf000 -- Executing [h@a2billing:1] Hangup("SIP/B-540bf000", "") in new stack == Spawn h extension (a2billing, h, 1) exited non-zero on 'SIP/B-540bf000' AGI Tx >> 200 result=-1CLI> == Spawn extension (a2billing, 34666666666, 2) exited non-zero on 'SIP/B-540bf000'
|