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
uperformkarthickOffline



Joined: Sep 30, 2008
Posts: 3

Status: Offline
Posted: Jan 21, 2009 - 01:44 PM Reply with quote Back to top
Hi,

My network looks like this. I have a router which have a static(public ip) IP and my asterisk system is having the private local ip.

I have followed all the instruction provided in this forum but it did'nt help.

My trixbox kernal version is 2.6.9-34.0.2.ELsmp (SMP)

Asterisk version is Asterisk 1.2.13 svn rev 47264

I am not able to register to voipuser server. My config looks like

[voipuser]
username=uperformkarthick
type=friend
secret=xxxxx
qualify=no
insecure=very
host=sip.voipuser.org
fromuser=uperformkarthick
fromdomain=voipuser.org
context=from-pstn

[voipuserout]
username=uperformkarthick
type=peer
secret=xxxx
qualify=no
insecure=very
host=sip.voipuser.org
fromuser=uperformkarthick
fromdomain=voipuser.org
context=from-pstn
canreinvite=no

My call log shows like

utils.c
asterisk1*CLI> show version
Asterisk 1.2.13 svn rev 47264 built by root @ localhost.localdomain on a i686 running Linux on 2006-12-31 19:02:30 UTC
REGISTER attempt 106 to uperformkarthick [!at] sip.voipuser.org (replace the [!at] with a @)
asterisk1*CLI>
[root@asterisk1 ~]# asterisk -r
Asterisk 1.2.13 svn rev 47264, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type '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 'show license' for details.
=========================================================================
Connected to Asterisk 1.2.13 svn rev 47264 currently running on asterisk1 (pid = 2638)
Verbosity is at least 10
Core debug is at least 11
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/200-09561298' in macro 'dialout-trunk'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/200-09561298'
-- Executing Macro("SIP/200-09561298", "hangupcall") in new stack
-- Executing ResetCDR("SIP/200-09561298", "w") in new stack
-- Executing NoCDR("SIP/200-09561298", "") in new stack
-- Executing GotoIf("SIP/200-09561298", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("SIP/200-09561298", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("SIP/200-09561298", "5") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/200-09561298' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/200-09561298'
-- Executing Macro("SIP/200-09561298", "dialout-trunk|2|00919008599332||") in new stack
-- Executing Set("SIP/200-09561298", "DIAL_TRUNK=2") in new stack
-- Executing Set("SIP/200-09561298", "_NODEST=") in new stack
-- Executing Set("SIP/200-09561298", "DIAL_NUMBER=00919008599332") in new stack
-- Executing Set("SIP/200-09561298", "ROUTE_PASSWD=") in new stack
-- Executing Set("SIP/200-09561298", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing GotoIf("SIP/200-09561298", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,Cool
-- Executing Set("SIP/200-09561298", "GROUP()=OUT_2") in new stack
-- Executing Macro("SIP/200-09561298", "user-callerid|SKIPTTL") in new stack
-- Executing NoOp("SIP/200-09561298", "user-callerid: device 200") in new stack
-- Executing GotoIf("SIP/200-09561298", "0?report") in new stack
-- Executing GotoIf("SIP/200-09561298", "0?start") in new stack
-- Executing Set("SIP/200-09561298", "REALCALLERIDNUM=200") in new stack
-- Executing NoOp("SIP/200-09561298", "REALCALLERIDNUM is 200") in new stack
-- Executing Set("SIP/200-09561298", "AMPUSER=200") in new stack
-- Executing Set("SIP/200-09561298", "AMPUSERCIDNAME=karthick") in new stack
-- Executing GotoIf("SIP/200-09561298", "0?report") in new stack
-- Executing Set("SIP/200-09561298", "CALLERID(all)=karthick <200>") in new stack
-- Executing Set("SIP/200-09561298", "REALCALLERIDNUM=200") in new stack
-- Executing NoOp("SIP/200-09561298", "TTL: ARG1: SKIPTTL") in new stack
-- Executing GotoIf("SIP/200-09561298", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("SIP/200-09561298", "Using CallerID "karthick" <200>") in new stack
-- Executing Macro("SIP/200-09561298", "record-enable|200|OUT") in new stack
-- Executing GotoIf("SIP/200-09561298", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing DeadAGI("SIP/200-09561298", "recordingcheck|20090121-044232|1232530952.20") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20090121-044232|1232530952.20: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("SIP/200-09561298", "No recording needed") in new stack
-- Executing GotoIf("SIP/200-09561298", "0?skipoutcid") in new stack
-- Executing Set("SIP/200-09561298", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing Macro("SIP/200-09561298", "outbound-callerid|2") in new stack
-- Executing GotoIf("SIP/200-09561298", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing NoOp("SIP/200-09561298", "REALCALLERIDNUM is 200") in new stack
-- Executing GotoIf("SIP/200-09561298", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing Set("SIP/200-09561298", "USEROUTCID=") in new stack
-- Executing Set("SIP/200-09561298", "EMERGENCYCID=") in new stack
-- Executing Set("SIP/200-09561298", "TRUNKOUTCID=") in new stack
-- Executing GotoIf("SIP/200-09561298", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing GotoIf("SIP/200-09561298", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,1Cool
-- Executing GotoIf("SIP/200-09561298", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing NoOp("SIP/200-09561298", "CallerID set to "karthick" <200>") in new stack
-- Executing GotoIf("SIP/200-09561298", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,16)
-- Executing DeadAGI("SIP/200-09561298", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing Set("SIP/200-09561298", "OUTNUM=00919008599332") in new stack
-- Executing Set("SIP/200-09561298", "custom=SIP/voipuserout") in new stack
-- Executing GotoIf("SIP/200-09561298", "0?customtrunk") in new stack
-- Executing Dial("SIP/200-09561298", "SIP/voipuserout/00919008599332|300|") in new stack
-- Called voipuserout/00919008599332
REGISTER attempt 114 to uperformkarthick [!at] sip.voipuser.org (replace the [!at] with a @)
REGISTER attempt 115 to uperformkarthick [!at] sip.voipuser.org (replace the [!at] with a @)
REGISTER attempt 116 to uperformkarthick [!at] sip.voipuser.org (replace the [!at] with a @)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Goto("SIP/200-09561298", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing NoOp("SIP/200-09561298", "Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing Macro("SIP/200-09561298", "outisbusy|") in new stack
-- Executing Playback("SIP/200-09561298", "all-circuits-busy-now|noanswer") in new stack
-- Playing 'all-circuits-busy-now' (language 'en')
-- Executing Playback("SIP/200-09561298", "pls-try-call-later|noanswer") in new stack
-- Playing 'pls-try-call-later' (language 'en')
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/200-09561298' in macro 'outisbusy'
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/200-09561298'
REGISTER attempt 117 to uperformkarthick [!at] sip.voipuser.org (replace the [!at] with a @)



asterisk1*CLI> sip show registry
Host Username Refresh State
sip.voipuser.org:5060 uperformkart 120 Request Sent


asterisk1*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
voipuserout/uperformkarth 194.0.210.251 N 5060 Unmonitored
voipuser/uperformkarthick 194.0.210.251 N 5060 Unmonitored
201/201 (Unspecified) D N 0 UNKNOWN
200/200 172.168.100.26 D N 63088 OK (109 ms)
4 sip peers [3 online , 1 offline]


I am not able to find out the issue if any suggestion will be appreciated

Thanks
Karthick
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Jan 21, 2009 - 03:47 PM Reply with quote Back to top
you need to check the general setting for SIP things you are looking for are the nat=yes and that the externip is set as is the localnet
View user's profile Send private message
uperformkarthickOffline



Joined: Sep 30, 2008
Posts: 3

Status: Offline
Posted: Jan 22, 2009 - 06:49 AM Reply with quote Back to top
ianplain :
you need to check the general setting for SIP things you are looking for are the nat=yes and that the externip is set as is the localnet



My Static(public) IP is 61.xxx.xxx.xxx
MY private Ip asterisk is 172.168.100.18
my gateway is 172.168.100.2

My nat config is

nat=yes
externip=172.168.100.18
localnet=172.168.100.18/24

Is there any changes do I need to make in this nat config?

I am really confused with the NAT.

Thanks
Karthick
View user's profile Send private message
deanOffline
Site Admin


Joined: Dec 13, 2003
Posts: 7870
Location: London
Status: Offline
Posted: Jan 22, 2009 - 09:20 AM Reply with quote Back to top
I'm not an asterisk expert, but this external IP:-

Quote:
externip=172.168.100.18


... is not an external IP. That's a private IP range.

I would hazzard a guess that should be your public IP address. There are some examples here:-

http://www.voip-info.org/wiki/index.php ... P+externip
View user's profile Send private message
uperformkarthickOffline



Joined: Sep 30, 2008
Posts: 3

Status: Offline
Posted: Jan 22, 2009 - 10:42 AM Reply with quote Back to top
dean :
I'm not an asterisk expert, but this external IP:-

Quote:
externip=172.168.100.18


... is not an external IP. That's a private IP range.

I would hazzard a guess that should be your public IP address. There are some examples here:-

http://www.voip-info.org/wiki/index.php ... P+externip


This is the same i'm getting


Host Username Refresh State
sip.voipuser.org:5060 uperformkart 120 Request Sent


I don't have any idea, but it looks like some network issue

Thanks
Karthick
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Jan 22, 2009 - 11:26 AM Reply with quote Back to top
Hi

Ohhhhh.

externip=172.168.100.18 this is your internal IP not your external. so you are telling our server to reply back to that address....

you need

externip=61.xxx.xxx.xxx

Ian
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

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.