Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Mon Apr 29, 2024 10:23 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Unable to place calls.
PostPosted: Thu Apr 08, 2010 10:39 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
I tried to check everything but I am now unable to place calls
I have created the trunks and assigned everything, rate cards, call plan, user, etc.

User can register without any inconvenient but when try to place call or call back this is what I get always

Quote:
== Using SIP RTP CoS mark 5
-- Executing [551192506266@a2billing:1] Answer("SIP/3389635046-00000002", "1") in new stack
[Apr 8 19:25:10] WARNING[5244]: pbx.c:3680 pbx_extension_helper: No application 'Wait,2' for extension (a2billing, 551192506266, 2)
== Spawn extension (a2billing, 551192506266, 2) exited non-zero on 'SIP/3389635046-00000002'
-- Executing [h@a2billing:1] Hangup("SIP/3389635046-00000002", "") in new stack
== Spawn extension (a2billing, h, 1) exited non-zero on 'SIP/3389635046-00000002'

I appreciate if anyone can help me on this,
the /etc/a2billing.conf - is original and I cannot see [agi-confX] section anywhere.

Thanks in advance
Renato.


Top
 Profile  
 
 Post subject: Re: Unable to place calls.
PostPosted: Thu Apr 08, 2010 11:45 pm 
Offline

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

This seems to be the problem.

Code:
[Apr 8 19:25:10] WARNING[5244]: pbx.c:3680 pbx_extension_helper: No application 'Wait,2' for extension (a2billing, 551192506266, 2)


Check your dial plan

Also on later versions, the agi-conf is database driven.

Joe


Top
 Profile  
 
 Post subject: Re: Unable to place calls.
PostPosted: Fri Apr 09, 2010 6:25 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Hi jroper, thank you for your reply,

I already checked the dial plan is there in extensions.conf like

Code:
[a2billing]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup

[did]
; CallingCard application
exten => _X.,1,DeadAGI(a2billing.php|1|did)


But still same behavior, what you mean dial plan is based on database? do I have to create these dial plans on database? that was not documented in the installation documentation.
If so, can you give me some hints?

Best regards,
Renato.


Top
 Profile  
 
 Post subject: Re: Unable to place calls.
PostPosted: Fri Apr 09, 2010 7:36 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
No, I said the agi-conf was database driven.

Your dialplan does not look like it has the correct syntax.

http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait

Joe


Top
 Profile  
 
 Post subject: Re: Unable to place calls.
PostPosted: Fri Apr 09, 2010 10:21 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Hi Joe,
you were right thank you, the Wait application was not correct.

Now I got rid of that message but maybe you can help me to figure why I still have problem I am receiving a status UNKOWN like below.

Any idea?

Quote:
-- Executing [551192506266@a2billing:1] Answer("SIP/3389635046-00000004", "1") in new stack
-- Executing [551192506266@a2billing:2] AGI("SIP/3389635046-00000004", "a2billing.php,1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- <SIP/3389635046-00000004>AGI Script a2billing.php completed, returning 0
-- Auto fallthrough, channel 'SIP/3389635046-00000004' status is 'UNKNOWN'
-- Executing [h@a2billing:1] Hangup("SIP/3389635046-00000004", "") in new stack
== Spawn extension (a2billing, h, 1) exited non-zero on 'SIP/3389635046-00000004'


my dialplan now is:

Code:
[a2billing]
exten => _X.,1,Answer(1)
exten => _X.,n,AGI(a2billing.php,1)
exten => h,1,Hangup


Regards,
Renato.


Top
 Profile  
 
 Post subject: Re: Unable to place calls.
PostPosted: Sat Apr 10, 2010 12:34 am 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Code:
[a2billing]
exten => _X.,1,Answer(1)
exten => _X.,n,AGI(a2billing.php,1)
exten => h,1,Hangup


read and go deep to the link and sublinks Joe posted.

[a2billing]
exten => _X.,1,Answer(1)
exten => _X.,n,AGI(a2billing.php,1)
exten => _X.,n,Hangup

status UNKNOWN because h is used in the dial plan, and callee hangs up so status unknown.

Rgds
Eamonn

http://www.eatelco.com


Top
 Profile  
 
 Post subject: Re: Unable to place calls.
PostPosted: Sat Apr 10, 2010 9:02 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
This line:-
Code:
exten => _X.,n,AGI(a2billing.php,1)


should be

Code:
exten => _X.,n,DeadAGI(a2billing.php,1)


Top
 Profile  
 
 Post subject: Re: Unable to place calls.
PostPosted: Sat Apr 10, 2010 2:38 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Eamonn and jroper, thank you for your both reply

I discovered a bad link for the symbolic link to lib in /var/lib/asterisk/agi-bin
I corrected this link to point to /common/lib location and AGI started to work.

jroper when I used DeadAGI asterisk advised me to use AGI instead, DeadAGI is deprecated

Guys I really thank your help on this case.

have a good day
Regards,
Renato.


Top
 Profile  
 
 Post subject: Re: Unable to place calls.
PostPosted: Mon May 03, 2010 9:11 pm 
Offline

Joined: Mon May 07, 2007 8:27 am
Posts: 38
Please let me know, how to create link and where?

Steps please................

Salman


Top
 Profile  
 
 Post subject: Re: Unable to place calls.
PostPosted: Tue May 04, 2010 2:16 am 
Offline

Joined: Mon May 07, 2007 8:27 am
Posts: 38
Well I have found the command.

ln -s /var/www/html/a2billing/common/lib /var/lib/asterisk/agi-bin/lib

Thanks for helping eachother.

Salman


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 76 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group