asterisk2billing.org
http://forum.asterisk2billing.org/

"the number u have dialed is currently unavailable"
http://forum.asterisk2billing.org/viewtopic.php?f=23&t=10561
Page 1 of 1

Author:  Cristheena [ Fri Oct 25, 2013 6:42 am ]
Post subject:  "the number u have dialed is currently unavailable"

I have installed
Freepbx : 2.8.1
asterisk: 1.8.20.0
a2billing: 1.9.4
I have created a trunk using rapidvox.com . The following link is used for creating trunk and configuring a2billing http://sysadminman.net/blog/2010/using-a2billing-to-account-for-extension-calls-in-elastix-1307 .

I’ve created an iax account using freepbx. And I made a successful call to a mobile number using this extension. Later I configured a2billing. There I created the same trunk with Rapidvox. Then I made rate cards, rate, call plan and customer. I put the account number of a2billing customer to the iax account that i created in freepbx. After doing all these things, I tried to make a call to the same number that i called earlier, i am not able to make it. Everything works properly till I enter the number I wish to call. After entering the number I am getting the error as “The number you have dialed is currently not available, Please enter the number you wish to call.”

Following are the configurations that I used to make the call.
extension_a2billing_additionals.conf:
[a2billing]
include => a2billing_callingcard
include => a2billing_monitoring
include => a2billing_voucher
[a2billing_callingcard]
; CallingCard application
exten => _X.,1,NoOp(A2Billing Start)
exten => _X.,n,DeadAgi(a2billing.php,1)
exten => _X.,n,Hangup
[a2billing_voucher]
exten => _X.,1,Answer(1)
exten => _X.,n,DeadAgi(a2billing.php,1,voucher)
exten => _X.,n,Hangup
[a2billing_did]
exten => _X.,1,DeadAgi(a2billing.php,1,did)
exten => _X.,2,Hangup

extensions_custom.conf:
[from-internal-custom]
exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
exten => 1234,2,Hangup()
exten => h,1,Hangup()
include => agentlogin
include => conferences
include => calendar-event
include => weather-wakeup

[agentlogin]
exten => _*8888.,1,Set(AGENTNUMBER=${EXTEN:5})
exten => _*8888.,n,NoOp(AgentNumber is ${AGENTNUMBER})
exten => _*8888.,n,AgentLogin(${AGENTNUMBER})
exten => _*8888.,n,Hangup()

[mm-announce]
exten => 9999,1,Set(CALLERID(name)="MMGETOUT")
exten => 9999,n,Answer
exten => 9999,n,Playback(conf-will-end-in)
exten => 9999,n,Playback(digits/5)
exten => 9999,n,Playback(minutes)
exten => 9999,n,Hangup

[conferences]
;Used by cbEnd script to play end of conference warning
exten => 5555,1,Answer
exten => 5555,n,Wait(3)
exten => 5555,n,CBMysql()
exten => 5555,n,Hangup

extensions.conf:
#include extensions_additional.conf
#include extensions_custom.conf
[from-digital]
include => from-pstn
[from-analog]
include => from-dahdi
[from-trunk] ; just an alias since VoIP shouldn't be called PSTN
include => from-pstn
[from-pstn]
include => from-pstn-custom ; create this context in extensions_custom.conf to include customizations
include => ext-did
include => ext-did-post-custom
include => from-did-direct ; MODIFICATION (PL) for findmefollow if enabled, should be before ext-local
include => ext-did-catchall ; THIS MUST COME AFTER ext-did
#include extension_a2billing_additionals.conf

Here is my error log:
-- AGI Script Executing Application: (DIAL) Options: (IAX2/[email protected],60,HRrL(5940000:61000:30000))
> Limit Data for this call:
> timelimit = 5940000 ms (5940.000 s)
> play_warning = 61000 ms (61.000 s)
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000 ms (30.000 s)
> start_sound =
> warning_sound = timeleft
> end_sound =
-- Called IAX2/[email protected]
-- Hungup 'IAX2/Rapidvox-9686'
== Everyone is busy/congested at this time (1:0/0/1)
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
-- <Local/00919846241378@a2billing-00000003;2> Playing 'prepaid-enter-dest.gsm' (language 'en')
-- Executing [h@macro-dialout-trunk:1] Macro("IAX2/1004-3266", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("IAX2/1004-3266", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("IAX2/1004-3266", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("IAX2/1004-3266", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("IAX2/1004-3266", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("IAX2/1004-3266", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("IAX2/1004-3266", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("IAX2/1004-3266", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("IAX2/1004-3266", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("IAX2/1004-3266", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("IAX2/1004-3266", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("IAX2/1004-3266", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("IAX2/1004-3266", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <IAX2/1004-3266>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("IAX2/1004-3266", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'IAX2/1004-3266' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'IAX2/1004-3266'
== Spawn extension (macro-dialout-trunk, s, 27) exited non-zero on 'IAX2/1004-3266' in macro 'dialout-trunk'
== Spawn extension (from-internal, 00919846241378, 6) exited non-zero on 'IAX2/1004-3266'
-- Hungup 'IAX2/1004-3266'
-- <Local/00919846241378@a2billing-00000003;2>AGI Script a2billing.php completed, returning 4
== Spawn extension (a2billing, 00919846241378, 2) exited non-zero on 'Local/00919846241378@a2billing-00000003;2'
-- Registered IAX2 '1004' (AUTHENTICATED) at 192.168.10.5:4569

Here is the call logs in a2billing:

- Call Logs -

Date CallerID DNID PhoneNumber Destination BuyRate SellRate Duration Account Trunk TC CallType Buy Sell Margin Markup
2013 1004 unknown 919846241378 0 0.0USD 0.0USD 00:00 1819579977 Rapidvox CHANUNAVAIL STANDARD 0.0USD
-10 0.000 USD n/a n/a
-25


1 / 1


TRAFFIC SUMMARY
DATE DUR GRAPHIC CALLS ALOC ASR SELL BUY PROFIT MARGIN MARKUP
2013-10-25 00:00
1 00:00 0.00% 0.000 USD 0.000 USD 0.000 USD NULL NULL
TOTAL 00:00 1 00:00 0.00% 0.000 USD 0.000 USD 0.000 USD NULL NULL


how can i fix this, please help me?

Author:  jroper [ Fri Oct 25, 2013 7:26 am ]
Post subject:  Re: "the number u have dialed is currently unavailable"

Hi

The advice here - viewtopic.php?f=9&t=10560 probably applies.

Joe

Author:  Cristheena [ Sat Oct 26, 2013 3:54 am ]
Post subject:  Re: "the number u have dialed is currently unavailable"

Thank u for ur reply .......
I tried using the above link u specified, but still i am getting the same error.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/