• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1060
  • Last Modified:

Asterisk Voice Connectivity with Cisco AS5350 via H323

Hello everyone,

I am little confused with the following scenario

I have created Dial peer on AS5350 which is use to take call from pstn and send to asterisk PBX using H323 for incoming call with ulaw and alaw voice codecs , I have installed asterisk-now downloaded from asterisk.org , I am getting successfully call hit on asterisk from cisco , but when i configure asterisk to transfer call to specific extension than  there is no voice on call after signal hit, means asterisk is receiving signals but not media from cisco or might be something wrong in h323.conf file , I have tested with same call hit with nortel PBX , there is no single issue in it

so what i did on asterisk in extensions.conf

note :- 123456 is suppose to be my incoming number from cisco access server

exten => 123456,1,Dial(SIP/100,25,tT)

once I saved this configuration using reload on asterisk -r , I start getting calls on 100 extension but no voice connectivity

now what kind of input you want from my side to solve this problem ASAP

  • 6
  • 5
1 Solution
Dear aamir_inayat,

Since the call does hit your asterisk server, can you post here that portion of asterisk terminal?

Moreover, can you post your sip.conf configuration?

I suggest also you should download and install Wireshark. It's a packet sniffing tool that will help you capture calls and detect errors and faults at the protocol level.
You can find wireshark here:

aamir_inayatAuthor Commented:

please find attached files

in this file you can find configuration for sip.conf ,extension.conf , h323.conf ,sip_notify.conf

as far call concern , it is hitting on asterisk , as you can find below

   -- Executing [123456@default:1] Goto("H323/ip$", "voicemenu-custom-1|s|1") in new stack
    -- Goto (voicemenu-custom-1,s,1)
    -- Executing [s@voicemenu-custom-1:1] Answer("H323/ip$", "") in new stack
    -- Executing [s@voicemenu-custom-1:2] Wait("H323/ip$", "1") in new stack
    -- Executing [s@voicemenu-custom-1:3] BackGround("H323/ip$", "thank-you-for-calling") in new stack
    -- <H323/ip$> Playing 'thank-you-for-calling' (language 'en')
    -- Executing [s@voicemenu-custom-1:4] BackGround("H323/ip$", "if-u-know-ext-dial") in new stack
    -- <H323/ip$> Playing 'if-u-know-ext-dial' (language 'en')
    -- Executing [s@voicemenu-custom-1:5] BackGround("H323/ip$", "otherwise") in new stack
    -- <H323/ip$> Playing 'otherwise' (language 'en')
    -- Executing [s@voicemenu-custom-1:6] BackGround("H323/ip$", "to-reach-operator") in new stack
    -- <H323/ip$> Playing 'to-reach-operator' (language 'en')
    -- Executing [s@voicemenu-custom-1:7] BackGround("H323/ip$", "pls-hold-while-try") in new stack
    -- <H323/ip$> Playing 'pls-hold-while-try' (language 'en')
[Dec 17 14:28:32] WARNING[3969]: pbx.c:2514 __ast_pbx_run: Invalid extension '501', but no rule 'i' in context 'voicemenu-custom-1'


here on asterisk console it shows that call is coming but there is not voice in call

for packet traces , I am going to attach the following trace for using tcpdump

tcpdump -i eth0 -vns0 not port 22 -w file.cap -- if you want anyother arguments let me know

please rename the file file.xls to file.pcap to open in to wireshark

if you need more input let me know

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Dear aamir_inayat,

From asterisk console, I can see that it plays the sounds files.

To get this right, you can not hear the sounds playing? Right?

You have to configure the cisco gateway as a sip/h.323 user in sip.conf/h323.conf. Where is the setup. I could not find the related part in the config file (sip.conf, etc.).

Here is what I would do:


insecure=very ; This is important, you should put it




exten => 123456,1,Background(thank-you-for-calling)


I suggest before running the whole dial plan is to go simple first. Try the above dial plan, just to play a simple message.

Good luck.
aamir_inayatAuthor Commented:
let me check it and update you
one more thing that my asterisk machine is behind nat , so how to enable natting for h323 on asterisk
I am not familiar with h323 nat issues on asterisk.

Read those regarding sip and I am sure they will give a bit of what should be done:



Good luck.
aamir_inayatAuthor Commented:
tried but still not working , what else it could be

aamir_inayatAuthor Commented:
Guys ,

I have removed system from nat , now Access server and asterisk are on same network , but still no voice connectivity as i explained above , DTMF is working but no Voice connectivity between two end points from AS to asterisk

looks like its problem with asterisk

Dear aamir_inayat,

Can't think of anything at the moment. Have you tried disabling the firewall?
aamir_inayatAuthor Commented:
Dear Icenick,

yes i did it. please find below my senior below as i am working now.

{PSTN} ----ss7 Link---{My office ASA5300}---------Ethernet Link------- {Asterisk}------Ethernet link----IP Phone. so there is not firewall.

i want only incomming call for this server. call is coming but no connection voice when i accept call from my mobile or other pstn .

I have nortel PBX also. when i connect Nortel PBX instead of Asterisk . everything is working.

Thanks for your help..

Dear aamir_inayat,

Can you send me please wireshark capture. But please this time, only the captured messages related to a call with no audio. Last time, the file you sent me had a lot of other messages and I lost track.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now