SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 15, 2008 - 04:00 AM Reply with quote Back to top
Hello

I have my Asterix running on Debian and then use xLite as a client on another computer within the network.

I am running a test for the voicemail feature. But after 20s no response, I can't hear anything ( voice mail menu ) from the xlite, but I can see the text

"Playing 'vm-theperson' (language 'en')" from Asterisk console.

Same thing for the Voicemail manual.

Can anyone tell me how to fix this? I think it may just be a minor config issue.

Thank you very much in advance for you kind help.
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1503
Location: Leeds UK
Status: Offline
Posted: Mar 15, 2008 - 07:57 AM Reply with quote Back to top
Are you using SIP? if so, it could be a NAT problem. Check your NAT settings in the sip.conf. Check the SIP packets for references to IP's in non-routable networks.
View user's profile Send private message Yahoo Messenger
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 2900
Location: Bath UK
Status: Offline
Posted: Mar 15, 2008 - 08:59 AM Reply with quote Back to top
Hi

You need to check that you nat settings are correct IE localnet settings and canreinvite is correct (note this has changed in 1.4). Are all on the same lan segment?

Ian
View user's profile Send private message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 15, 2008 - 09:20 AM Reply with quote Back to top
Hi,
I have put my server in the DNZ and in "My SIP Account" page, is shows that my server is not inside NAT. My userid is outraspace.

In my sip.conf, I have

[general]
port = 5060
bindaddr = 0.0.0.0
context = others

register =>outraspace:whatever@voipuser.org/outraspace
nat=no
externip=58.251.75.255
localnet=192.168.1.1/255.255.255.0
canreinvite=no


I have tried turning nat to yes and no,but they don't work.
Any idea how to debug this problem?

Thank you very much for your kind help.
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 2900
Location: Bath UK
Status: Offline
Posted: Mar 15, 2008 - 10:16 AM Reply with quote Back to top
Hi

Ok that looks OK I assume the softphone is also on the same 192.168.1. network.

it may be worth running rtp debug at the asterisk command to see where the packets are going.

Ian
View user's profile Send private message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 15, 2008 - 10:45 AM Reply with quote Back to top
Hi,
When I run rpt debug, it seems like the packet is running in an infinite loop:

-- Executing [2001@my-phones:1] Dial("SIP/2000-081da668", "SIP/2001|20") in new stack
-- Called 2001
-- SIP/2001-081d4df0 is ringing
-- Nobody picked up in 20000 ms
-- Executing [2001@my-phones:2] VoiceMail("SIP/2000-081da668", "2001|u") in new stack
Sent RTP packet to 192.168.1.102:52128 (type 00, seq 050827, ts 000160, len 000160)
-- <SIP/2000-081da668> Playing 'vm-theperson' (language 'en')
Got RTP packet from 192.168.1.102:52128 (type 00, seq 000232, ts 2375600, len 000160)
Got RTP packet from 192.168.1.102:52128 (type 00, seq 000233, ts 2375760, len 000160)
Got RTP packet from 192.168.1.102:52128 (type 00, seq 000234, ts 2375920, len 000160)
Got RTP packet from 192.168.1.102:52128 (type 00, seq 000235, ts 2376080, len 000160)
Got RTP packet from 192.168.1.102:52128 (type 00, seq 000236, ts 2376240, len 000160)


Any idea how to fix it?

Thank you very much for all your help.
View user's profile Send private message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 15, 2008 - 10:50 AM Reply with quote Back to top
I don't understand this cuz my client is running on 192.168.1.100 and my asterisk is running on 192.168.1.101.
how come it is point to 192.168.1.102?

Is there something wrong?
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 2900
Location: Bath UK
Status: Offline
Posted: Mar 15, 2008 - 10:59 AM Reply with quote Back to top
Hi

OK

could you post the sip.conf for the phone.

output of ifconfig and for that matter ipconfig on pc

also what is .102 ?

It seems you have some type of network issue.

Ian
View user's profile Send private message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 15, 2008 - 05:44 PM Reply with quote Back to top
Hi:

My sip.conf is :
[general]
port = 5060
bindaddr = 0.0.0.0
context = others

register =>outraspace:pass@voipuser.org/outraspace
nat=yes
externip=58.251.75.251
localnet=192.168.1.1/255.255.255.0
canreinvite=yes

[2000]
type=friend
context=my-phones
secret=1234
host=dynamic

[2001]
type=friend
context=my-phones
secret=1234
host=dynamic

[voipuser]
type=friend
context=from-voip-provider
username=outraspace
fromuser=outraspace
secret=pass
host=voipuser.org
fromdomain=voipuser.org
qualify=no
insecure=very
nat=yes


My asterisk's ifconfig

debian:/etc# ifconfig
eth0 Link encap:Ethernet HWaddr 00:1D:7D:43:88:F7
inet addr:192.168.1.101 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:122469 errors:0 dropped:1835483480 overruns:0 frame:0
TX packets:20236 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29269175 (27.9 MiB) TX bytes:3011511 (2.8 MiB)
Interrupt:177 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1780 errors:0 dropped:0 overruns:0 frame:0
TX packets:1780 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:104473 (102.0 KiB) TX bytes:104473 (102.0 KiB)
View user's profile Send private message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 15, 2008 - 05:47 PM Reply with quote Back to top
My PC(SIP client)'s ipconfig is:

Windows IP Configuration


Ethernet adapter Local Area Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::7c37:86cf:5075:c430%9
Autoconfiguration IPv4 Address. . : 169.254.196.48
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::3849:6abc:b15d:a5ee%8
IPv4 Address. . . . . . . . . . . : 192.168.1.102
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Tunnel adapter Local Area Connection* 6:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5efe:192.168.1.102%10
Default Gateway . . . . . . . . . :

Tunnel adapter Local Area Connection* 7:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5efe:169.254.196.48%14
Default Gateway . . . . . . . . . :

Tunnel adapter Local Area Connection* 9:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 2900
Location: Bath UK
Status: Offline
Posted: Mar 15, 2008 - 08:47 PM Reply with quote Back to top
OK so your PC is 102 and not 100 as you thought.

could you change localnet=192.168.1.1/255.255.255.0 to localnet=192.168.1.0/255.255.255.0

and also add some codec information

such as

dissalow=all
allow=ulaw
allow=alaw

and see what you get

Ian
View user's profile Send private message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 16, 2008 - 04:22 AM Reply with quote Back to top
Hi,
I am still getting the error:

[Mar 16 20:21:07] NOTICE[2973]: chan_iax2.c:6025 update_registry: Restricting registration for peer 'iaxmodem' to 60 seconds (requested 50)
-- Unregistered SIP '2000'
-- Registered SIP '2000' at 192.168.1.102 port 13962 expires 3600
-- Saved useragent "X-Lite release 1011s stamp 41150" for peer 2000
-- Executing [2999@my-phones:1] VoiceMailMain("SIP/2000-081debe8", "2000|s") in new stack
Sent RTP packet to 192.168.1.102:19092 (type 00, seq 001116, ts 000160, len 000160)
-- <SIP/2000-081debe8> Playing 'vm-youhave' (language 'en')
Got RTP packet from 192.168.1.102:19092 (type 00, seq 003560, ts 139800, len 000160)
Got RTP packet from 192.168.1.102:19092 (type 00, seq 003561, ts 139960, len 000160)
Got RTP packet from 192.168.1.102:19092 (type 00, seq 003562, ts 140120, len 000160)
Got RTP packet from 192.168.1.102:19092 (type 00, seq 003563, ts 140280, len 000160)
Got RTP packet from 192.168.1.102:19092 (type 00, seq 003564, ts 140440, len 000160)


I checked, the asterisk is on .101 and client is on .102.
View user's profile Send private message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 16, 2008 - 04:30 AM Reply with quote Back to top
It seems like my client pc is not responing to the RTP packet? Is it something that I have to do with my router?
Both company is inside the 192 lan and I explicitly put the asterisk server inside the DMZ. Any idea?
View user's profile Send private message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 16, 2008 - 06:10 AM Reply with quote Back to top
I run sniffer on my client, and saw this:

10 9.424368 192.168.1.101 192.168.1.102 RTP PT=ITU-T G.711 PCMU, SSRC=0x5DCD0323, Seq=6787, Time=160

It seems like the RTP packet did get sent to the client pc? Is it true?
View user's profile Send private message
outraspaceOffline



Joined: Mar 08, 2008
Posts: 41

Status: Offline
Posted: Mar 16, 2008 - 03:05 PM Reply with quote Back to top
I can't figure out why. I run sniffer and can see the RTP packet sent to the client's PC. But I just can't hear the audio from the voicemail. What can be the problem? Please help out.

Pete
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic
Goto page 1, 2  Next

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.