outgoing call problem

holyfather
Posts: 14
Member Since:
2009-12-22

hi ,everyone here.

I ran into a problem when making outgoing through iax2 trunk. It appears that everytime I make an outgoing call I can hear ringtones at calling end without ringing called end. In the status page, I found that active calls is 1, both internal and external call is 0. My trixbox is 2.8.0.3.

Could anyone give a clue on it?

BTW, how do I chech the registration status of iax2 trunk.

Thx in advance.



Astrosmurfer
Posts: 643
Member Since:
2009-12-28
Connect to the Asterisk

Connect to the Asterisk console with asterisk -rvvvvvvv

iax2 show registry

iax2 show channels

iax2 set debug trunk {on|off}



holyfather
Posts: 14
Member Since:
2009-12-22
fake ringtones

It happens when I call outbound through IAX2 trunks. the caller can hear ringtones but called end don't ring at all.

Anyone has a clue on it ?



Astrosmurfer
Posts: 643
Member Since:
2009-12-28
Did you try the commands I

Did you try the commands I listed above? What was the resulting output?

Do you have control over both systems? If so, have you looked at the receiving system with the same commands to see if the call is getting there?



holyfather
Posts: 14
Member Since:
2009-12-22
to : Astrosmurfer

Thanks .

Yes, I did.

iax2 show registry: no Iax2 trunk registered
iax2 set debug trunk {on|off}: not debug info showed on the log file.

Regards



holyfather
Posts: 14
Member Since:
2009-12-22
more problem

I have more problems. That happened when I made call through a2billing. THe problem lies that when I entered my card no and phone numbers it didnot call out but repeated the prompt of entering destination number.

What is wrong with my trixbox and a2billing?

I guess that the reason may lies that I updated some of trixbox modules. However, I can't figure out what really causes the above problems as before updating I could dialed out and I found that a2billing sent the DIAL command to Trixbox.



holyfather
Posts: 14
Member Since:
2009-12-22
for the above problem, the agi debug info below

Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.6.0.10-FONCORE-r40 currently running on trixbox1 (pid = 3091)
trixbox1*CLI>
Verbosity is at least 3
[Ktrixbox1*CLI> af[K[Kagi set debug on
trixbox1*CLI>
AGI Debugging Enabled
[Ktrixbox1*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
[Ktrixbox1*CLI>
-- Executing [59@a2billing:1] [1;36;40mAnswer[0;37;40m("[1;35;40mSIP/2000-b76175f8[0;37;40m", "[1;35;40m1[0;37;40m") in new stack
[Ktrixbox1*CLI>
-- Executing [59@a2billing:2] [1;36;40mDeadAGI[0;37;40m("[1;35;40mSIP/2000-b76175f8[0;37;40m", "[1;35;40ma2billing.php,1[0;37;40m") in new stack
[Ktrixbox1*CLI>
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
AGI Tx >> agi_request: a2billing.php
[Ktrixbox1*CLI>
AGI Tx >> agi_channel: SIP/2000-b76175f8
[Ktrixbox1*CLI>
AGI Tx >> agi_language: en
[Ktrixbox1*CLI>
AGI Tx >> agi_type: SIP
[Ktrixbox1*CLI>
AGI Tx >> agi_uniqueid: 1269088538.15
[Ktrixbox1*CLI>
AGI Tx >> agi_version: 1.6.0.10-FONCORE-r40
[Ktrixbox1*CLI>
AGI Tx >> agi_callerid: 2000
[Ktrixbox1*CLI>
AGI Tx >> agi_calleridname: device
[Ktrixbox1*CLI>
AGI Tx >> agi_callingpres: 0
[Ktrixbox1*CLI>
AGI Tx >> agi_callingani2: 0
[Ktrixbox1*CLI>
AGI Tx >> agi_callington: 0
[Ktrixbox1*CLI>
AGI Tx >> agi_callingtns: 0
[Ktrixbox1*CLI>
AGI Tx >> agi_dnid: 59
[Ktrixbox1*CLI>
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: a2billing
[Ktrixbox1*CLI>
AGI Tx >> agi_extension: 59
[Ktrixbox1*CLI>
AGI Tx >> agi_priority: 2
[Ktrixbox1*CLI>
AGI Tx >> agi_enhanced: 0.0
[Ktrixbox1*CLI>
AGI Tx >> agi_accountcode:
[Ktrixbox1*CLI>
AGI Tx >> agi_threadid: -1220416624
[Ktrixbox1*CLI>
AGI Tx >> agi_arg_1: 1
[Ktrixbox1*CLI>
AGI Tx >>
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
AGI Rx AGI Tx >> 200 result=0
AGI Rx -- Playing 'prepaid-enter-pin-number.gsm' (language 'en')
[Ktrixbox1*CLI>
AGI Tx >> 200 result=2629990043
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
AGI Tx >> 200 result=1
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
AGI Tx >> 200 result=0 endpos=9440
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'digits/9.gsm' (language 'en')
[Ktrixbox1*CLI>
AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
AGI Tx >> 200 result=0 endpos=7200
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'vm-and' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
AGI Tx >> 200 result=0 endpos=4640
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'digits/40.gsm' (language 'en')
[Ktrixbox1*CLI>
-- Playing 'digits/7.gsm' (language 'en')
[Ktrixbox1*CLI>
AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
AGI Tx >> 200 result=0 endpos=5600
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
AGI Tx >> 200 result=1
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
AGI Tx >> 200 result=6
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'prepaid-enter-dest.gsm' (language 'en')
[Ktrixbox1*CLI>
AGI Tx >> 200 result=00861095588
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
AGI Tx >> 200 result=0 endpos=9440
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'digits/4.gsm' (language 'en')
[Ktrixbox1*CLI>
-- Playing 'digits/hundred.gsm' (language 'en')
[Ktrixbox1*CLI>
-- Playing 'digits/70.gsm' (language 'en')
[Ktrixbox1*CLI>
-- Playing 'digits/3.gsm' (language 'en')
[Ktrixbox1*CLI>
AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
[Ktrixbox1*CLI>
AGI Tx >> 200 result=0 endpos=6240
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
AGI Tx >> 200 result=0
[Ktrixbox1*CLI>
AGI Rx AGI Tx >> 200 result=6
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
-- Playing 'prepaid-enter-dest.gsm' (language 'en')
[Ktrixbox1*CLI>
AGI Tx >> 200 result=-1
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
AGI Tx >> 511 Command Not Permitted on a dead channel
[Ktrixbox1*CLI>
AGI Rx [Ktrixbox1*CLI>
AGI Tx >> 511 Command Not Permitted on a dead channel
[Ktrixbox1*CLI>
-- AGI Script a2billing.php completed, returning -1
[Ktrixbox1*CLI> exit



Astrosmurfer
Posts: 643
Member Since:
2009-12-28
I can't speak for your

I can't speak for your a2billing. But your inability to make iax2 outbound calls is explained by this output:

iax2 show registry: no Iax2 trunk registered

You need to figure out why your iax2 trunk isn't registering. Double check the configuration. UsedrID, secret, codec...



holyfather
Posts: 14
Member Since:
2009-12-22
It does not seem that...

Thanks, Astrosmurfer.

Maybe it is not like that.

I tried a call with SIP softphone registered as an extension. Although "No iax2 trunk registered", I could call out. If it was the registration problem, the symptoms is not that way.

I hope some one can find some clue through above agi debug info. or if I can provide further info, I would love you to tell me.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.