TB 2.8 Problem - No audio from incoming calls using Broadvoice SIP trunk

jstraten
Posts: 165
Member Since:
2006-08-16

After upgrading to TB 2.8 I am puzzled with an issue I never encountered before. Basically, I can make calls from my analog phones that are connected to the trixbox system using a Rhino analog card, but I can't hear callers calling me. To make things even more weird they can actually leave a voice mail without problems.

I am guessing that this could be a driver problem of some sort, but I don't see any error messages in the log and so I don't know where to start.

Is there anybody out there who encountered the same issue and could help me with resolving it?

Our system is only for home usage, but it is a rack mounted intel based system. Nothing unusual on the hardware end, but my project manager (speak upset wife!) is getting seriously upset with our home phone system...

Thanks in advance!

Jens



antidelldude
Posts: 287
Member Since:
2009-05-18
Clarify Please

Your subject says it is happening on the broadvoice trunk, your comment says it is happening on your rhino card. Could you please clarify if it is doing it on one or the other or both? Could you please post a log of the call? The simplest way to do this is open up ssh, type asterisk -vvvvvvr make a call, copy and paste what shows up.

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



jstraten
Posts: 165
Member Since:
2006-08-16
Hi Jon, Thank you for

Hi Jon,

Thank you for replying to me.

I guess I should have added more details.

My setup:

Broadvoice SIP trunk
-works fine to make outbound calls
-seems to work fine for inbound calls

Rhino card
-has 2 FXS modules that are connected to a two line analog phone
-can make outbound calls
-can receive inbound calls, but no audio from the calling party

Asterisk
-no errors or warnings in the log
-added nat=yes, externip and localnetwork to sip_general_custom configuration file
-can take voice mails from calls I don't receive audio from on my analog phones

I am currently on a business trip, but I will get a log for you no later than Friday.

Update: I just noticed that DISA doesn't work either (it takes my password and gives me a dial tone, but it doesn't take any input beyond that) and so I switched externip to externhost (registered domain name) and DISA started working again. Unfortunately, I can't test if this change also resolved the incoming call problem, but you never know... Will report back to this thread on Friday with an update.

Best regards,
Jens



jstraten
Posts: 165
Member Since:
2006-08-16
Ok. I played around some

Ok. I played around some more and found that the same problem is true for extension on the same local network as well.

However, I found one odd thing. The system does NOT allow me to have externip set to my external IP address any longer. I am guessing that this is the issue. Basically, I can't register my trunk once I have specified the external IP in sip_general_custom.conf.

Here is my network setup:

1. Smoothwall forwarding 5 external IPs to internal machines (configuration didn't changes for 8 month plus now).
2. Trixbox uses valid hostname (pbx.domain.com) that is linked in local DNS to 192.168.x.x.
3. pbx.domain.com is also valid on the external network and linked to a valid IP 99.11.x.x.
4. Trixbox shows external and internal IP on status page correctly (with or without any configuration in sip_general_custom.conf.
5. sip_general_custom.conf contains

nat=yes
#externhost=pbx.domain.com
externip=99.11.x.x
localnet=192.168.x.x/255.255.255.0

6. I also tried nat=no and externhost instead of externip, but once I have externip or externhost specified I can no longer register my Broadvoice trunk.
7. My BroadVoice trunk worked fine on 2.6 with no incoming settings and the outgoing settings listed below.

username=5551235555
type=peer
secret=<mysecret>
qualify=yes
insecure=very
host=sip.broadvoice.com
fromuser=5551235555
fromdomain=sip.broadvoice.com
dtmfmode=rfc2833
disallow=all
context=from-pstn
canreinvite=no
allow=ulaw

8. The Asterisk log doesn't show any errors and so I didn't add that here...

I really hope that someone can help me with that. This is our only home phone and it is really bugging us that we can't hear incoming callers...

Thanks,
Jens



SkykingOH
Posts: 9675
Member Since:
2007-12-17
Nat won't effect

Nat won't effect registration only media packets.

--

Scott

aka "Skyking"



jstraten
Posts: 165
Member Since:
2006-08-16
Hi Scott, Thank you for

Hi Scott,

Thank you for getting back to me.

Yes, that makes sense. What's puzzling to me is that I didn't really change anything except upgrading to 2.8.

I believe the key of the problem is that I can no longer specify externip in my configuration file. I mean even the trixbox status page shows me the same external IP address anyhow, but once I explicitly specify it in the configuration file I can no longer register any SIP trunks...

I guess I might have to go back to 2.6.x once again, but then I will have the DTMF problem again... Either way I am left with problems...

Here is the asterisk log people were looking for:

Connected to Asterisk 1.6.0.9-samy-r27 currently running on trixbox (pid = 2503)
Verbosity was 3 and is now 6
    -- Remote UNIX connection
    -- Starting simple switch on 'DAHDI/1-1'
    -- Executing [5002@from-internal:1] Macro("DAHDI/1-1", "exten-vm,novm,5002") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("DAHDI/1-1", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] Set("DAHDI/1-1", "AMPUSER=5001") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/1-1", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/1-1", "1?Set(REALCALLERIDNUM=5001)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("DAHDI/1-1", "AMPUSER=5001") in new stack
    -- Executing [s@macro-user-callerid:5] Set("DAHDI/1-1", "AMPUSERCIDNAME=Line 1") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/1-1", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("DAHDI/1-1", "AMPUSERCID=5001") in new stack
    -- Executing [s@macro-user-callerid:8] Set("DAHDI/1-1", "CALLERID(all)="Line 1" <5001>") in new stack
    -- Executing [s@macro-user-callerid:9] Set("DAHDI/1-1", "REALCALLERIDNUM=5001") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("DAHDI/1-1", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:11] GotoIf("DAHDI/1-1", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:12] Set("DAHDI/1-1", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("DAHDI/1-1", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,20)
    -- Executing [s@macro-user-callerid:20] NoOp("DAHDI/1-1", "Using CallerID "Line 1" <5001>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("DAHDI/1-1", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("DAHDI/1-1", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("DAHDI/1-1", "EXTTOCALL=5002") in new stack
    -- Executing [s@macro-exten-vm:5] Set("DAHDI/1-1", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("DAHDI/1-1", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("DAHDI/1-1", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("DAHDI/1-1", "record-enable,5002,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("DAHDI/1-1", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("DAHDI/1-1", "recordingcheck,20090711-121440,1247339674.0") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
 recordingcheck,20090711-121440,1247339674.0: Inbound recording not enabled
    -- <DAHDI/1-1>AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("DAHDI/1-1", "") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("DAHDI/1-1", "dial,"",trw,5002") in new stack
    -- Executing [s@macro-dial:1] GotoIf("DAHDI/1-1", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("DAHDI/1-1", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
 dialparties.agi: Starting New Dialparties.agi
  == Manager 'admin' logged on from 127.0.0.1
 dialparties.agi: Caller ID name is 'Line 1' number is '5001'
       > dialparties.agi: USE_CONFIRMATION:  'FALSE'
       > dialparties.agi: RINGGROUP_INDEX:   ''
 dialparties.agi: Methodology of ring is  'none'
    -- dialparties.agi: Added extension 5002 to extension map
    -- dialparties.agi: Extension 5002 cf is disabled
    -- dialparties.agi: Extension 5002 do not disturb is disabled
       > dialparties.agi: extnum 5002 has:  cw: 1; hascfb: 0 [] hascfu: 0 []
       > dialparties.agi: ExtensionState: 0
    -- dialparties.agi: dbset CALLTRACE/5002 to 5001
    -- dialparties.agi: Filtered ARG3: 5002
  == Manager 'admin' logged off from 127.0.0.1
    -- <DAHDI/1-1>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("DAHDI/1-1", "DAHDI/2,"",trw") in new stack
    -- Called 2
    -- DAHDI/2-1 is ringing
    -- DAHDI/2-1 is ringing
    -- DAHDI/2-1 answered DAHDI/1-1
    -- Executing [h@macro-dial:1] Macro("DAHDI/1-1", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("DAHDI/1-1", "vw") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("DAHDI/1-1", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("DAHDI/1-1", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("DAHDI/1-1", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("DAHDI/1-1", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("DAHDI/1-1", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'DAHDI/1-1' in macro 'hangupcall'
  == Spawn extension (macro-dial, h, 1) exited non-zero on 'DAHDI/1-1'
    -- Hungup 'DAHDI/2-1'
  == Spawn extension (macro-dial, s, 7) exited non-zero on 'DAHDI/1-1' in macro 'dial'
  == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'DAHDI/1-1' in macro 'exten-vm'
  == Spawn extension (from-internal, 5002, 1) exited non-zero on 'DAHDI/1-1'
    -- Hungup 'DAHDI/1-1'

Thanks,
Jens



SkykingOH
Posts: 9675
Member Since:
2007-12-17
First, let's get the facts

First, let's get the facts out of the way, channel_sip is not broken in Asterisk 1.6 so something else is wrong.

The call trace you sent does not involve SIP trunks. To get anywhere you should do a SIP trace with debug on and post the relevant registration sequence (if you don't know how to trim the log use pastebin.ca simply provide the link).

Additional info from sip show peer followed by your peer name would be useful. You can find the exact peer name with sip show peers.

--

Scott

aka "Skyking"



jstraten
Posts: 165
Member Since:
2006-08-16
Hi Scott, I realize that it

Hi Scott,

I realize that it is working for many people, but it doesn't work for me...

I activated sip debug in asterisk and captured the following log (cellphone to trixbox):
http://pastebin.ca/1492230

Here is the result of running sip show peer:

  * Name       : BroadVoice
  Secret       : <Set>
  MD5Secret    : <Not set>
  Context      : from-pstn
  Subscr.Cont. : <Not set>
  Language     :
  AMA flags    : Unknown
  Transfer mode: open
  CallingPres  : Presentation Allowed, Not Screened
  FromUser     : 5551235555
  FromDomain   : sip.broadvoice.com
  Callgroup    :
  Pickupgroup  :
  Mailbox      :
  VM Extension : *97
  LastMsgsSent : 32767/65535
  Call limit   : 0
  Dynamic      : No
  Callerid     : "" <>
  MaxCallBR    : 384 kbps
  Expire       : -1
  Insecure     : port,invite
  Nat          : RFC3581
  ACL          : No
  T38 pt UDPTL : No
  CanReinvite  : No
  PromiscRedir : No
  User=Phone   : No
  Video Support: Yes
  Text Support : No
  Trust RPID   : No
  Send RPID    : No
  Subscriptions: Yes
  Overlap dial : Yes
  DTMFmode     : rfc2833
  Timer T1     : 500
  Timer B      : 32000
  ToHost       : sip.broadvoice.com
  Addr->IP     : 147.135.8.128 Port 5060
  Defaddr->IP  : 0.0.0.0 Port 0
  Transport    : UDP
  Def. Username: 5551235555
  SIP Options  : 100rel
  Codecs       : 0x4 (ulaw)
  Codec Order  : (ulaw:20)
  Auto-Framing :  No
  100 on REG   : No
  Status       : OK (108 ms)
  Useragent    :
  Reg. Contact :
  Qualify Freq : 60000 ms
  Sess-Timers  : Accept
  Sess-Refresh : uas
  Sess-Expires : 1800 secs
  Min-Sess     : 90 secs

I still can't see anything being wrong... Since it is a fresh install I only activated ulaw so far to keep things simple.

I also noticed that I can externip in my configuration, but once I add localnet my trunk no longer registers... Really weird!

localnet=192.168.x.x/255.255.255.0

Thank you for looking into this in advance!

Best regards,
Jens

P.S.: Please let me know if I didn't provide what you were looking for an I will try again.



SkykingOH
Posts: 9675
Member Since:
2007-12-17
You might want to show your

You might want to show your entire localnet string. I have a feeling it is wrong.

There is no security risk in sharing it, it's a private non-routable IP!

--

Scott

aka "Skyking"



jstraten
Posts: 165
Member Since:
2006-08-16
Scott, The full IP

Scott,

The full IP is:

localnet=192.168.1.0/255.255.255.0

I believe that's correct, right?

Thanks,
Jens



SkykingOH
Posts: 9675
Member Since:
2007-12-17
Yes, that is correct. You

Yes, that is correct. You say it works until you put the localnet in.

Is the gateway in the 192.168.1.0/24 network?

--

Scott

aka "Skyking"



antidelldude
Posts: 287
Member Since:
2009-05-18
Quick question, have you

Quick question, have you tried a sip phone? Does it work with 2 way audio? If you haven't, download xlite and give it a whirl. It may not be a trunk issue if a sip phone works. Then the rhino card could be concentrated on.

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



jstraten
Posts: 165
Member Since:
2006-08-16
Hi Jon, I just tried xlite

Hi Jon,

I just tried xlite again and I hope I have some results that might help finding a solution:

1. Rhino extension calling xlite
Two way audio! :)

2. xlite calling Rhino extension
xlite can hear Rhino, but Rhino can't hear xlite. :(

3. Rhino calling outside number of trunk
Two way audio! :)

4. Incoming call over trunk calling Rhino extension
Caller can hear Rhino, but Rhino can't hear caller. :(

Basically, any call made to my Rhino card doesn't work.

When I look at the logs and from what I can see on the status screen I would guess that the Rhino card never receives the RTP data for the audio.

Any ideas? It's hard to believe that I am the only one having this problem...

Thanks,
Jens



antidelldude
Posts: 287
Member Since:
2009-05-18
I'm sure you're just one of

I'm sure you're just one of the early adopters of 2.8. Not many people have even tried it yet. If this is indeed a driver issue, we'll see more people on the forums with this issue in the coming months.
Anyways, just a shot in the dark.

yum remove rhino*
yum install -y rhino-$(uname -r)

I also noticed combing the forums you have had this issue before, what did you do to get it working on 2.6 10 months ago?

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



jstraten
Posts: 165
Member Since:
2006-08-16
Hi Jon, When I had the issue

Hi Jon,

When I had the issue in the past I didn't have a fixed IP and the issue was reversed. I also used a Linksys SPA at that time... Now, it is all dedicated hardware and static IP.

Scott, I forgot to answer your question. Yes, the gateway is at 192.168.1.1 (Smoothwall).

Is there a way to test if it is a driver problem? I am planning to test a call between two xlite extensions towards on Friday. I guess if that works it is a driver issue. If it fails I am guessing that it is some network issue within trixbox, but then I don't understand why other people didn't encounter it. I mean my setup doesn't seem to be too unusual.

It is also still puzzling to me that I can't specify the localnet...

Thanks,
Jens

P.S.: I already tried uninstall and re-install for the driver...



antidelldude
Posts: 287
Member Since:
2009-05-18
Wanna buy me your Rhino card?

Seriously though, I have nothing. I read Rhino's support is very nice if you find that it is a driver issue and you haven't already opened a ticket. https://support.rhinoequipment.com/
Worst case, back to trixbox 2.6.2.3.

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



jstraten
Posts: 165
Member Since:
2006-08-16
Thanks Jon. I will go ahead

Thanks Jon.

I will go ahead and open a ticket with Rhino.

I also did one more test which I believe confirms that this is probably a driver problem. Basically, I made a DISA call and it worked just fine...

Best regards,
Jens



jstraten
Posts: 165
Member Since:
2006-08-16
Update

Just a quick update:

I started working with Rhino Support and we found that the problem also exists if I make a call from Rhino extension to another.

Unfortunately, I believe that still allows the issue to be a driver issue or a trixbox network issue.

Since I also see more and more people posting about problems with their network setup I am wondering what's going on.

Even though I tried tons of things on my end I have been unable to get trixbox to accept a localnet entry in my configuration file. I mean I can add it, but then I can no longer register any trunk...

I will post new updates once they become available.

Best regards,
Jens



antidelldude
Posts: 287
Member Since:
2009-05-18
I may have a clue on your

I may have a clue on your local net issue. If you haven't already, set your trixbox directly on the internet. NO DMZ! Get smoothwall and all forwarding out of the picture. Get your install to have a straight public IP. Then disable your nat settings, and make a call from extension to extension. I'm interested to see the results.
After you do that little test above, on the second network card, assign it an ip from the 192.168.1.0 subnet, enable nat, enter your externip and your localnet=192.168.1.0/255.255.255.0 and see if your trunk registers then.

All of this is to point fingers at smoothwall, I know it was working fine with 2.6 but issues can arise.

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



jstraten
Posts: 165
Member Since:
2006-08-16
Jon, I am using DSL with 5

Jon,

I am using DSL with 5 static IPs.

The modem has only one network connector and so I need to connect it to a router or, in my case, smoothwall to get all my addresses linked to the local network. I can investigate if there is a method that would allow me to do otherwise, but I am currently not aware of it. I would also think that most people here are using some kind of router or firewall to protect their trixbox environment.

That said I think I understand where you are going with your suggestion and I guess it would actually work. However, this would just confirm that something has changed in the way networks are being handled by trixbox and I would assume this to be a bug on the trixbox end and not in smoothwall.

Anyhow, if someone can make a suggestion how I can easily test that without pulling my entire environment apart I am game to test it.

Best regards,
Jens



sorvani
Posts: 163
Member Since:
2009-06-25
how to do it depends on what

how to do it depends on what box is doing your DSL authentication, if any. Many DSL providers require pppoe authentication prior to passing the static IPs down the line, just like their non static customers.

if your modem is handling this, or if you have one of the providers that don't require ppoe for static, then you can simply drop a 4 port switch on the back side of the modem. plug the sonicwallinto one port and your now vulnerable trixbox into another port. You may want to disable anything in the sonicwall related to the IP you are going to be using.

If the sonciwall is handling the pppoe then there is no "simple" way to do it. There are ways, just not simple.

But if you are having a problem with a call between two ports of your Rhino card, I can not see how that would be affected in any way by your network settings. That or I misread something.

--

Jared Busch
Office: Have 2.8.0.1 talking to 3 IPOffice403's.
Home: Have 2.8.0 with trunks from Vitelity, & CallWithUs.



jfinstrom
Posts: 2013
Member Since:
2007-03-07
An update for the curious we

An update for the curious we are working on this issue with Jens. So far testing seems to exclude our driver and Hardware. We have fully qualified our hardware on 2.8 and have seen no issues with basic operation. That said we are always happy to look in to things. A test call was recorded and there was bi-directional audio which indicates the bottom 3 layers are doing their thing:

Hardware
rcbfx
DAHDI -> application layer

All these components worked.

So either chan_dahdi is not getting the audio or something in the way jens box is handling audio streams is failing.

my guess would be the latter as this happens on chan_sip as well.

--



jstraten
Posts: 165
Member Since:
2006-08-16
Thanks James!

Currently, my smoothwall is also handling the PPOE login even though I could do that in the modem as well. I believe there is a way to transparently route external IPs to a second network card using smoothwall. I could look into that, but I don't understand why this would be required for a call from extension to extension.

James, if I interpret your answer correctly it could all come down to me being unable to use localnet in my configuration file, right? I mean this could explain why the audio doesn't reach it's destination.

Is there some more debugging I can do to debug the next higher level?

One more question: Everything works fine for DISA calls... I believe I can also make a call from one xten extension (SIP) to another one. However, it fails when I make a call from xten to DAHDI... So, would that point us to chan_dahdi not getting the audio right for me?

Thanks,
Jens



jstraten
Posts: 165
Member Since:
2006-08-16
Ok. I did some more testing

Ok. I did some more testing and I think I made some progress.

It seems that it call comes down to not having localnet in my config file. I still have to do a test between my Rhino extensions when I get back home, but I noticed that all audio issues between SIP extensions go away once I have localnet in my config file. The only issue now is that I can't register my trunk with BroadVoice once I have localnet in my config file.

Since it worked just fine with older Trixbox versions I am also pretty sure that something changed on the trixbox end as well.

Going through my notes I noticed that I did simplify my DNS setup this time. I used to run a secondary DNS linked to my windows domain server on trixbox, but I didn't see much use for that and so I didn't install it when I upgraded. Not sure, but this is pretty much the only difference on my end...

If somebody has any ideas on why I can't register my trunk with localnet specified please let me know.

Thanks,
Jens



antidelldude
Posts: 287
Member Since:
2009-05-18
Pop into webmin and define

Pop into webmin and define 208.67.222.222 and 208.67.220.220 as your dns servers, restart, try again. Take shorewall's dns pass through out of the picture.

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



jstraten
Posts: 165
Member Since:
2006-08-16
Hi Jon, I tried opendns as

Hi Jon,

I tried opendns as suggested above. Results are unchanged in comparison to using ATT DNS (smoothwall uses ATT DNS forwarders).

With localnet:

Name/username              Host            Dyn Nat ACL Port     Status     
BroadVoice/5551234567      147.135.8.128        N      5060     UNREACHABLE 

Without localnet:

Name/username              Host            Dyn Nat ACL Port     Status     
BroadVoice/5551234567      147.135.8.128        N      5060     OK (110 ms) 

I am lost. My only explanation is that something has changed in CentOS... I should mention that I can also connect to BroadVoice using xten as a client without problems. Same subnet and any DNS...

I will also test Rhino to Rhino with localnet on Friday, but I am almost certain that it will work as well. I guess I am stuck with either way having audio between extensions or not having audio on incoming calls, but being able to make calls...

Any linux gurus here?

Thanks,
Jens



jstraten
Posts: 165
Member Since:
2006-08-16
Partial Success

Update: I only partially solved my problem. I mean I can now keep localnet in my configuration and I can also register the trunk, but I still don't have any audio on incoming trunk calls... It seemed (or maybe it did) to work, but now it doesn't... Need to do some more research I guess...

Basically, I had two issues which were interfering with each other.

To make it short:

Obviously, externip, externhost and localnet have to be specified in sip_general_custom.conf to have audio working on incoming connections.

In my case that disabled my box from registering the trunk (BroadVoice). Now, after I spend a lot of time on debugging and trying out different configurations I found that the issue is caused by the fact that the latest 2.8 and 2.6 release no longer consider an IP alias in the hosts file located in /etc. Since BroadVoice has different proxies and recommends to register to the closest one I added the following line to my hosts file xxx.xxx.xxx.xxx sip.broadvoice.com. In older releases of trixbox this would just work fine, but something has changed in the way this is being handled and so it currently doesn't work.

The quick fix is to use the default IP, but I am guessing that it would also be possible to setup a local DNS service to handle the proxy address.

Furthermore, I also found that changing the host name on a trixbox system gave me further trouble (e.g. missing web GUI elements, MySQL warning messages, etc.).

All these things used to work just fine on older releases. It should be noted that it is highly likely that these issues come from changes in CentOS, but I am not an expert in that area and so I will leave the final resolution of this issue to the gurus.

Thanks again to everyone trying to help me out!

Best regards,
Jens

P.S. If you are using a smoothwall like I do, I also noticed that some trunks (e.g. VoipDiscount) don't like the sip proxy future any longer. VoipDiscount is my backup trunk...



jstraten
Posts: 165
Member Since:
2006-08-16
I am guessing that the audio

I am guessing that the audio problem is caused by this:

Peer             User/ANR    Call ID          Format           Hold     Last Message   
147.135.32.221   5551234567  149a42dc2c4dbe8  0x0 (nothing)    No                                 
147.135.32.221   5551234567  1a80025-a8@147.  0x4 (ulaw)       No       Rx: ACK                   
2 active SIP dialogs

I should probably see ulaw in the first line as well... :(

Thanks,
Jens



jstraten
Posts: 165
Member Since:
2006-08-16
More testing... 1. SIP to

More testing...

1. SIP to SIP on internal network => two way audio => :)
2. Rhino to Rhino on internal network => called party can't hear caller => :(
3. Rhino to SIP => two way audio => :)
4. SIP to Rhino => called party can't hear caller => :(
5. Rhino making calls over SIP trunk => two way audio => :)

Something seem to block the audio to the Rhino card... I also tried downgrading the firmware from 2.0 back to the previous version without success. I am considering to replace the firewall with pfSense and to try it directly on the external network, but looking at my test results above I am doubtful that this will make any difference... The problem seems to be somewhere within asterisk and the way it talks to the Rhino cards for incoming calls.

It still puzzles me that I am the only person having that problem, but my hardware seems to be quite standard and so I am not sure what could cause the problem...

I am also wondering if I should do another re-install, but this would be number 3 then...

Any new suggestions based on my findings above? I mean I did some testing with Rhino Support and it seems that we confirmed that the audio gets stuck somewhere in chan_dahdi. Is there some more debugging I could do on that end?

Thanks,
Jens



jstraten
Posts: 165
Member Since:
2006-08-16
Rollback

I tried a few more things, but I couldn't get it to work. 3 weeks of time wasted. Time to inform management (my wife) of failure... ;)

Well, not exactly. I went back to 2.6.2.3 and everything worked (2 ZAPTEL extensions, 3 sip extensions and 1 sip trunk) right away. Ok. Since I noticed that both releases are now running on the same kernel I didn't try a different host name on the box yet... Didn't want to ruin my success right away...

Looking at the facts it seems to be safe assumption that the problem is caused somewhere in the DAHDI layer. The fact that I seem to be one of the only people running into this problem so far is probably mostly based on the fact of people not having tried it very much yet. However, I do see quite a lot of people having audio problems lately...

Since I am not a VOIP guru and since I don't feel knowledgeable enough to open an asterisk bug ticket I feel that rolling back to the current stable solution was my best option.

In general I am a bit disappointed that the overall support in the forum seem to have dropped quite a lot. With a few exceptions there aren't too many people left that are willing to help others. I mean I am not an expert, but I am trying to help people with trixbox whenever I can. I can see that help isn't always appreciated and some people just do a hit and run approach to get their questions answered (at the minimum people could report back when something worked for them) resulting in a lot of knowledgeable folks stopping to answer questions all together. Needless to say that this is a bad development for everyone here...

Anyhow, once again I would like to say thank you to the people that were trying to help me. I am hoping that my test efforts will go somewhere and, maybe, I will try upgrading again in a few months when the product has become more mature.

Best regards,
Jens



pjknuth
Posts: 14
Member Since:
2007-10-18
No, you're not the only one..

I'm also having the problem with one-way audio when an analog phone is involved on my rhino card. I worked extensively with Rhino support (excellent, by the way) and they confirmed that the rhino offers-up the audio, but audio is not heard from caller - SAME EXACT SCENARIO THAT JSTRATEN DESCRIBED.

Also related to problems during install - [Date] context was missing from /etc/php.ini that caused very long delays (20-30 seconds) before analog extensions would begin to ring (SIP-SIP was okay, just not anything that involved analog). All was resolved with 'time.zone = YOURTIMEZONE' entry in php.ini file.



Ramblin
Posts: 6
Member Since:
2009-12-23
Remote SIPRegisters but NO Audio

I do not have Rhino cards, but I am experiencing a similar issue
trixbox 2.8 w Asterisk 1.6
Dnynamic DNS
Server NATed; remote client NATed
NO customnization of config files directly - all configs done via trixbox UI changes
Local and External IP shows correctly on System Status window

When I connect from outside into my Server, with either x-lite or an Aastra phone (53i), I register, I can dial, I can make the connection, but no audio passes so any voicemails are ) seconds long.

Any suggestions?

Richard



miliyoneya
Posts: 9
Member Since:
2006-08-07
Same No Audio transmission Problem Here with Trixbox 2.8.0.4

I have the Same problem as well Sip Registers, phone calls connect , but no audio transmitted

Using Digium TDM2400P card
Trixbox 2.8.0.4. with Asterisk 1.6

Everything worked well under Trixbox 2.6 with Asterisk 1.4

Going back to trixbox 2.6



Comment viewing options

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