Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Aug 22, 2019 3:24 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Codec Problem.
PostPosted: Mon Nov 26, 2007 6:19 pm 
Offline

Joined: Tue Nov 20, 2007 3:59 pm
Posts: 8
Hi all,
I need your help again...
I've got a problem with codec.

I have created a trunk with an IAX account like this :
<number>:<Password>@IP_Address

Here is the debug :
Code:
a2billing.php:
    -- AGI Script Executing Application: (Dial) Options: (IAX2/<username>:<password>@<Ip_address>/<number_in_france>|30|HL(5400000:61000:30000)0)
    -- Limit Data for this call:
    -- - timelimit     = 5400000
    -- - play_warning  = 61000
    -- - play_to_caller= yes
    -- - play_to_callee= no
    -- - warning_freq  = 30000
    -- - start_sound   = UNDEF
    -- - warning_sound = timeleft
    -- - end_sound     = UNDEF
    -- Called <username>:<password>@<Ip_address>/<number_in_france>
Nov 26 22:16:06 WARNING[7207]: chan_iax2.c:7170 socket_read: Call rejected by <IP_Address>: Unable to negotiate codec
    -- Hungup 'IAX2/IP_Address:4569-2'
  == Everyone is busy/congested at this time (1:0/0/1)
  == Spawn extension (a2billing, 258, 3) exited non-zero on 'IAX2/5531051343-1'
    -- Hungup 'IAX2/5531051343-1'

The codec used here is ulaw, I know the IAX account am using is also on ulaw because I tried before from another asterisk box and it worked.

Can someone help me ???
Where could I specify a specific codec for the trunk ?

I'll try to get the debug on the other side.
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 7:22 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
Do you know if your Asterisk has been compiled with support for ulaw?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 7:38 pm 
Offline

Joined: Tue Nov 20, 2007 3:59 pm
Posts: 8
Well, I am pretty sure yeah, but I'll double check.
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 9:34 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
I was asking it because if you use the latest version of Asterisk (1.4.13...), you will notice that there is a tool called with "make menuselect". And it allows to include or exclude codecs, modules, features, ...

It also shows you what cannot be installed due to missing dependencies.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 27, 2007 2:22 am 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
Take a look at the sample iax.conf that is shipped with asterisk. You can set the codec to be used in the "general" section or in the trunk context definition let's call it "mytrunk"

[mytrunk]
type=peer
host=192.168.0.1
username=
secret=
disallow=all
allow=ulaw



then use this context in the A2B admin trunk setup.

PROVIDER TECH: IAX2
PROVIDER IP: mytrunk


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 27, 2007 5:12 am 
Offline

Joined: Tue Nov 20, 2007 3:59 pm
Posts: 8
But when you create a trunk, nothing is created in the files right ???
I haven't seen any [MyTrunk] in the iax files when i create one in the Web interface.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 27, 2007 5:18 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Makkro wrote:
I haven't seen any [MyTrunk] in the iax files when i create one in the Web interface.
The additional_a2billing_sip/iax.conf files are intended to hold only the SIP/IAX friend peer definitions. A2B doesn't generate trunks in your sip/iax.conf files; you need to create the trunk in those files yourself files and then refer to them in the A2B trunks config.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 27, 2007 5:22 am 
Offline

Joined: Tue Nov 20, 2007 3:59 pm
Posts: 8
Oh ok, I see.
Will do that tonight and let you know.
Thanks a lot


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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