Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 11:20 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: did free
PostPosted: Tue Aug 04, 2009 8:30 am 
Offline

Joined: Thu Sep 11, 2008 1:06 pm
Posts: 19
Hi I was able to route my DID to my a2billing. But it does not ring the to the extension with the assigned DID.

Asterisks Logs
Code:
-- AGI Script Executing Application: (DIAL) Options: (SIP/[email protected]|30|HL(3600000:61000:30000))
    -- Limit Data for this call:
       > timelimit      = 3600000
       > play_warning   = 61000
       > play_to_caller = yes
       > play_to_callee = no
       > warning_freq   = 30000
       > start_sound    = (null)
       > warning_sound  = timeleft
       > end_sound      = (null)
    -- Called [email protected]
    -- Got SIP response 482 "Loop Detected" back from x.x.x.x
    -- Now forwarding SIP/8194-b7e27720 to 'Local/4149684802@from-sip-external' (thanks to SIP/x.x.x.x-09537170)
    -- Executing [4149684802@from-sip-external:1] NoOp("Local/4149684802@from-sip-external-2358,2", "Received incoming SIP connection from unknown peer to 4149684802") in new stack
    -- Executing [4149684802@from-sip-external:2] Set("Local/4149684802@from-sip-external-2358,2", "DID=4149684802") in new stack
    -- Executing [4149684802@from-sip-external:3] Goto("Local/4149684802@from-sip-external-2358,2", "s|1") in new stack
    -- Goto (from-sip-external,s,1)
    -- Executing [s@from-sip-external:1] GotoIf("Local/4149684802@from-sip-external-2358,2", "0?from-trunk|4149684802|1") in new stack
    -- Executing [s@from-sip-external:2] Set("Local/4149684802@from-sip-external-2358,2", "TIMEOUT(absolute)=15") in new stack
    -- Channel will hangup at 2009-08-04 00:13:18 UTC.
    -- Executing [s@from-sip-external:3] Answer("Local/4149684802@from-sip-external-2358,2", "") in new stack
    -- Executing [s@from-sip-external:4] Wait("Local/4149684802@from-sip-external-2358,2", "2") in new stack
    -- Local/4149684802@from-sip-external-2358,1 answered SIP/8194-b7e27720
    -- Executing [s@from-sip-external:5] Playback("Local/4149684802@from-sip-external-2358,2", "ss-noservice") in new stack
    -- <Local/4149684802@from-sip-external-2358,2> Playing 'ss-noservice' (language 'en')
    -- Executing [s@from-sip-external:6] PlayTones("Local/4149684802@from-sip-external-2358,2", "congestion") in new stack
    -- Executing [s@from-sip-external:7] Congestion("Local/4149684802@from-sip-external-2358,2", "5") in new stack
  == Spawn extension (from-sip-external, s, 7) exited non-zero on 'Local/4149684802@from-sip-external-2358,2'
    -- Executing [h@from-sip-external:1] NoOp("Local/4149684802@from-sip-external-2358,2", "Hangup") in new stack
    -- Executing [h@from-sip-external:2] Set("Local/4149684802@from-sip-external-2358,2", "DID=s") in new stack
    -- Executing [h@from-sip-external:3] Goto("Local/4149684802@from-sip-external-2358,2", "s|1") in new stack
    -- Goto (from-sip-external,s,1)
    -- Executing [s@from-sip-external:1] GotoIf("Local/4149684802@from-sip-external-2358,2", "0?from-trunk|s|1") in new stack
    -- Executing [s@from-sip-external:2] Set("Local/4149684802@from-sip-external-2358,2", "TIMEOUT(absolute)=15") in new stack
    -- Channel will hangup at 2009-08-04 00:13:26 UTC.
    -- Executing [s@from-sip-external:3] Answer("Local/4149684802@from-sip-external-2358,2", "") in new stack
  == Spawn extension (from-sip-external, s, 3) exited non-zero on 'Local/4149684802@from-sip-external-2358,2'
    -- AGI Script a2billing.php completed, returning 0



extensions.conf

[a2billing-did]
exten => _X.,1,DeadAgi(a2billing.php|2|did)
exten => _X.,2,Hangup

[a2billing-w] ; wholesale
exten => _X.,1,DeadAGI(a2billing.php|2)
exten => _X.,n,Hangup

Out going is already working. Just a problem with incoming. Please help.


Top
 Profile  
 
 Post subject: Re: did free
PostPosted: Tue Aug 04, 2009 8:52 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Are you sending the DID to your own system, in other words, looping it back.

To send to an extension in FreePBX, you would want to create a trunk of technology of type local, and if you want inbound routes to deal with it, then in the trunk destination, something like %diallingnumber%@from-trunk

It only needs to go through a trunk if you want to bill for it.

local/1234@from-internal in the destination would send it to extension 123 in FreePBX, or local/123@from-trunk would send it into inbound routes - just be careful you do not send it round in a loop from inbound routes, into A2Billing and back into inbound routes, and back to A2Billing again!

Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group