RE: [Asterisk-Users] Cant get Asterisk server talk with IAX
Hi Dave, Thank you for your quick response. I'm using Netgear 54Mbps Wireless Router WGR614v3 and I have forwarded the ports as follows : # Service Name Start Port End Port Server IP Address 1 Asterisk 4569 4569 192.168.0.2 When I try to connect from the server that is connected directly to the internet to the one behind NAt, I get the following in my logs in my server that is connected directly to the internet. Dec 28 03:24:31 DEBUG[19846]: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer Dec 28 03:24:31 DEBUG[19846]: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer Dec 28 03:24:31 DEBUG[19846]: # Testing 127.0.0.1 with 0.0.0.0 Dec 28 03:24:31 DEBUG[19846]: # Testing 127.0.0.1 with 127.0.0.0 Dec 28 03:24:31 VERBOSE[19846]: == Manager 'admin' logged on from 127.0.0.1 Dec 28 03:24:31 DEBUG[19846]: Raw Hangup a.b.c.d:4569, src=0, dst=1 Dec 28 03:24:31 DEBUG[19846]: Raw Hangup a.b.c.d:4569, src=0, dst=1 Dec 28 03:24:41 DEBUG[19846]: Manager received command 'Command' Dec 28 03:24:51 DEBUG[19846]: Manager received command 'Command' Dec 28 03:25:01 DEBUG[19846]: Manager received command 'Command' Dec 28 03:25:01 NOTICE[19846]: No registration for peer '2000' (from 203.109.116.99) Dec 28 03:25:11 DEBUG[19846]: Manager received command 'Command' Dec 28 03:25:16 NOTICE[19846]: Registration of '1000' rejected: Registration Refused Dec 28 03:25:21 DEBUG[19846]: Manager received command 'Command' The logs on the server that is behind the NAT is as follows: Dec 28 16:53:34 NOTICE[25845]: No registration for peer '1000' (from 66.151.89.145) Dec 28 16:53:37 DEBUG[25845]: Manager received command 'Command' Dec 28 16:53:47 DEBUG[25845]: Manager received command 'Command' Dec 28 16:53:52 DEBUG[25845]: # Testing 66.151.89.145 with 0.0.0.0 Dec 28 16:53:52 NOTICE[25845]: Rejected connect attempt from 66.151.89.145, request '[EMAIL PROTECTED]' does not exist Dec 28 16:53:57 DEBUG[25845]: Manager received command 'Command' Dec 28 16:54:02 NOTICE[25845]: Registration of '2000' rejected: Registration Refused Dec 28 16:54:07 DEBUG[25845]: Manager received command 'Command' Dec 28 16:54:17 DEBUG[25845]: Manager received command 'Command' Dec 28 16:54:24 NOTICE[25845]: No registration for peer '1000' (from 66.151.89.145) The problem is getting the 2 servers to register.. Can you please let me know what could be the reason? Is it the problem with the "register" line in both the server which is mentioned as "host-dynamic"? Thanks, Soj On Tue, 2004-12-28 at 16:40, David J Carter wrote: > Hi, > > Have you got port 4569 open in your NAT/Firewall? > > I take it that your extension ranges on the servers are 5000 and 6000 range. > > The configs look OK, same as mine, and mine works fine. > > Regards > > Dave > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Chicku > Sent: 28 December 2004 04:44 > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Cant get Asterisk server talk with IAX > > > > > Hi everyone, > > I am trying to connect 2 asterisk servers via IAX, but it just > fails to do so.. I'm using SIP to connect the IP phones on the > LAN at the 2 different physical locations where each server > resides and I'm able to communicate on my LAN via SIP without > any issues. The problem is that I'm unable to make Asterisk > servers talk with each other via IAX.. > > Here is my issue. > > I've got one asterisk server connected directly to the internet > and the other behind a NAT. > > > The iax.conf file for the one that is directly connected to the > internet is as follows: > > [general] > bindport = 4569 ; Port to bind to (IAX is 4569) > bindaddr = 0.0.0.0; Address to bind to (all addresses on > machine) > delayreject=yes > disallow=all > allow=ulaw > allow=alaw > allow=gsm > jitterbuffer=yes > mailboxdetail=yes > > > #include iax_additional.conf [I'm using AMP as the GUI > interface] > > > register => 1000:[EMAIL PROTECTED] > > [a.b.c.d is the IP address of the router. ie. the server is > behind the nat] > > > [2000] > type=user > username=2000 > auth=plaintext > permit=a.b.c.d/255.255.255.0 > host=dynamic > context=fullaccess > > My extension.conf is as follows for the server that is directly > connected to internet.: > > [fullaccess] > exten => _5XXX,1,Dial(IAX2/[EMAIL PROTECTED]/${EXTEN}) > exten => _5XXX,2,Hangup > exten => _5XXX,102,Hangup > -- > > Now the iax.conf file for the one behind NAT is as follows: > > > [general] > bindport = 4569 ; Port to bind to (IAX is 4569) > bindaddr = 0.0.0.0; Address to bind to (all addresses on > machine) > delayreject=yes > disallow=all > allow=ulaw > allow=alaw > allow=gsm > jitterbuffer=yes > mailboxdetail=yes > > > #include iax_additional.conf > > > register => 2000:[EMAIL PROTECTED] > > > [1000] > type=user > username=1000 > auth=plaintext > permit=0.0.0.0/0.0.0.0 > host=dyna
RE: [Asterisk-Users] Cant get Asterisk server talk with IAX
Hi Dave, Thank you for the sample config file for IAX... But, that didnt help me.. Also, I have the entries for 5001 in sip.conf. But, I'm not sure if it is correct.. So, can you please show me yor sample sip and iax files. Really appreciate your help. Thank you, Soj On Tue, 2004-12-28 at 17:22, David J Carter wrote: > Sojesh, > > My IAX configs look like below: - > > ;Server A > > register=wilma:[EMAIL PROTECTED] > > [fred] > type=yes > deny=0.0.0.0/0.0.0.0 > permit=serverb_address/255.255.255.255 > secret=wilma > > > ;Server B > > register=fred:[EMAIL PROTECTED] > > [wilma] > type=user > deny=0.0.0.0/0.0.0.0 > permit=servera_address/255.255.255.255 > secret=fred > > make sure you have the entries in your sip.conf for the extensions as part > of the debug output looks like 5001 does not exist. > > Dave > > -Original Message- > From: Sojesh [mailto:[EMAIL PROTECTED] > Sent: 28 December 2004 11:37 > To: [EMAIL PROTECTED]; asterisk-users@lists.digium.com > Subject: RE: [Asterisk-Users] Cant get Asterisk server talk with IAX > > > > Hi Dave, > > Thank you for your quick response. > > I'm using Netgear 54Mbps Wireless Router WGR614v3 and I have forwarded > the ports as follows : > > > # > Service Name > Start Port > End Port > Server IP > Address > > 1 > Asterisk > 4569 > 4569 > 192.168.0.2 > When I try to connect from the server that is connected directly to the > internet to the one behind NAt, I get the following in my logs in my > server that is connected directly to the internet. > > > Dec 28 03:24:31 DEBUG[19846]: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl > for peer > Dec 28 03:24:31 DEBUG[19846]: 127.0.0.1/255.255.255.0/255.255.255.0 > appended to acl for peer > Dec 28 03:24:31 DEBUG[19846]: # Testing 127.0.0.1 with 0.0.0.0 > Dec 28 03:24:31 DEBUG[19846]: # Testing 127.0.0.1 with 127.0.0.0 > Dec 28 03:24:31 VERBOSE[19846]: == Manager 'admin' logged on from > 127.0.0.1 > Dec 28 03:24:31 DEBUG[19846]: Raw Hangup a.b.c.d:4569, src=0, dst=1 > Dec 28 03:24:31 DEBUG[19846]: Raw Hangup a.b.c.d:4569, src=0, dst=1 > Dec 28 03:24:41 DEBUG[19846]: Manager received command 'Command' > Dec 28 03:24:51 DEBUG[19846]: Manager received command 'Command' > Dec 28 03:25:01 DEBUG[19846]: Manager received command 'Command' > Dec 28 03:25:01 NOTICE[19846]: No registration for peer '2000' (from > 203.109.116.99) > Dec 28 03:25:11 DEBUG[19846]: Manager received command 'Command' > Dec 28 03:25:16 NOTICE[19846]: Registration of '1000' rejected: > Registration Refused > Dec 28 03:25:21 DEBUG[19846]: Manager received command 'Command' > > > > The logs on the server that is behind the NAT is as follows: > > > Dec 28 16:53:34 NOTICE[25845]: No registration for peer '1000' (from > 66.151.89.145) > Dec 28 16:53:37 DEBUG[25845]: Manager received command 'Command' > Dec 28 16:53:47 DEBUG[25845]: Manager received command 'Command' > Dec 28 16:53:52 DEBUG[25845]: # Testing 66.151.89.145 with 0.0.0.0 > Dec 28 16:53:52 NOTICE[25845]: Rejected connect attempt from > 66.151.89.145, request '[EMAIL PROTECTED]' does not exist > Dec 28 16:53:57 DEBUG[25845]: Manager received command 'Command' > Dec 28 16:54:02 NOTICE[25845]: Registration of '2000' rejected: > Registration Refused > Dec 28 16:54:07 DEBUG[25845]: Manager received command 'Command' > Dec 28 16:54:17 DEBUG[25845]: Manager received command 'Command' > Dec 28 16:54:24 NOTICE[25845]: No registration for peer '1000' (from > 66.151.89.145) > > The problem is getting the 2 servers to register.. Can you please let me > know what could be the reason? Is it the problem with the "register" > line in both the server which is mentioned as "host-dynamic"? > > Thanks, > Soj > > > On Tue, 2004-12-28 at 16:40, David J Carter wrote: > > Hi, > > > > Have you got port 4569 open in your NAT/Firewall? > > > > I take it that your extension ranges on the servers are 5000 and 6000 > range. > > > > The configs look OK, same as mine, and mine works fine. > > > > Regards > > > > Dave > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of Chicku > > Sent: 28 December 2004 04:44 > > To: asterisk-users@lists.digium.com > > Subject: [Asterisk-Users] Cant get Asterisk server talk with IAX > > > > > > > > > > Hi everyone,
[Asterisk-Users] AMP and Asterisk PSTN extension config
Hi, I have configured an Asterisk server with TDM01P (1FXO) for testing purpose. The interface I'm using is AMP. I want to configure my extension so that when I dial from my mobile phone to the asterisk line, I want it to transfer the call to any extension, say 3042 and after a particular number of rings, transfer the call to voice mail so that I can record my message. My Zaptel.conf is as follows: -- context=from-pstnsignalling=fxs_ksfaxdetect=incomingusecallerid=yesechocancel=yesechocancelwhenbridged=yesechotraining=400callerid=asreceivedgroup=1channel=4--- My extensions.conf is as follows: -- ; Asterisk Management Portal (AMP); Copyright (C) 2004 Coalescent Systems Inc ; dialparties.agi (http://www.sprackett.com/asterisk/); Asterisk::AGI (http://asterisk.gnuinter.net/); gsm (http://www.ibiblio.org/pub/Linux/utils/compress/!INDEX.short.html); loligo sounds (http://www.loligo.com/asterisk/sounds/); mpg123 (http://voip-info.org/wiki-Asterisk+config+musiconhold.conf) ; include part generated from AMP#include extensions_additional.conf [from-pstn]exten => s,1,GotoIf($[${IN_OVERRIDE} = forcereghours]?from-pstn-reghours,s,1:)exten => s,2,GotoIf($[${IN_OVERRIDE} = forceafthours]?from-pstn-afthours,s,1:)exten => s,3,GotoIfTime(${REGTIME}|${REGDAYS}|*|*?from-pstn-reghours,s,1:)exten => s,4,Goto(from-pstn-afthours,s,1) [from-pstn-reghours]exten => s,1,GotoIf($[${FAX_RX} = disabled]?from-pstn-reghours-nofax,s,1:2) ; if fax detection is disabled, then jump to from-pstn-nofax - else continueexten => s,2,Answerexten => s,3,Wait(1)exten => s,4,SetVar(intype=${INCOMING})exten => s,5,Cut(intype=intype,-,1)exten => s,6,GotoIf($[${intype} = EXT]?7:9) ; If INCOMING starts with EXT, then assume its an extensionexten => s,7,Wait(3) ;wait 3 more second to make sure this isn't a fax before dialing someoneexten => s,8,Goto(ext-local,${INCOMING:4},1)exten => s,9,GotoIf($[${intype} = GRP]?10:11) ; If INCOMING starts with GRP, then assume its a ring groupexten => s,10,Goto(ext-group,${INCOMING:4},1)exten => s,11,Goto(${INCOMING},s,1) ; not EXT or GR1 - it's an auto attendantexten => fax,1,Goto(ext-fax,in_fax,1)exten => h,1,Hangup [from-pstn-reghours-nofax]exten => s,1,SetVar(intype=${INCOMING})exten => s,2,Cut(intype=intype,-,1)exten => s,3,GotoIf($[${intype} = EXT]?4:5) ; If INCOMING starts with EXT, then assume its an extensionexten => s,4,Goto(ext-local,${INCOMING:4},1)exten => s,5,GotoIf($[${intype} = GRP]?6:7) ; If INCOMING starts with GRP, then assume its a ring groupexten => s,6,Goto(ext-group,${INCOMING:4},1)exten => s,7,Answer ; answer call before auto attendantexten => s,8,Wait(1)exten => s,9,Goto(${INCOMING},s,1) ; not EXT or GR1 - it's an auto attendantexten => fax,1,Goto(ext-fax,in_fax,1)exten => h,1,Hangup [from-pstn-afthours]exten => s,1,GotoIf($[${FAX_RX} = disabled]?from-pstn-afthours-nofax,s,1:2) ; if fax detection is disabled, then jump to from-pstn-nofax - else continueexten => s,2,Answerexten => s,3,Wait(1)exten => s,4,SetVar(intype=${AFTER_INCOMING})exten => s,5,Cut(intype=intype,-,1)exten => s,6,GotoIf($[${intype} = EXT]?7:9) ; If INCOMING starts with EXT, then assume its an extensionexten => s,7,Wait(3) ;wait 3 more second to make sure this isn't a fax before dialing someoneexten => s,8,Goto(ext-local,${AFTER_INCOMING:4},1)exten => s,9,GotoIf($[${intype} = GRP]?10:11) ; If INCOMING starts with GRP, then assume its a ring groupexten => s,10,Goto(ext-group,${AFTER_INCOMING:4},1)exten => s,11,Goto(${AFTER_INCOMING},s,1) ; not EXT or GR1 - it's an auto attendantexten => fax,1,Goto(ext-fax,in_fax,1)exten => h,1,Hangup [from-pstn-afthours-nofax]exten => s,1,SetVar(intype=${AFTER_INCOMING})exten => s,2,Cut(intype=intype,-,1)exten => s,3,GotoIf($[${intype} = EXT]?4:5) ; If INCOMING starts with EXT, then assume its an extensionexten => s,4,Goto(ext-local,${AFTER_INCOMING:4},1)exten => s,5,GotoIf($[${intype} = GRP]?6:7) ; If INCOMING starts with GRP, then assume its a ring groupexten => s,6,Goto(ext-group,${AFTER_INCOMING:4},1)exten => s,7,Answer ; answer call before auto attendantexten => s,8,Wait(1)exten => s,9,Goto(${AFTER_INCOMING},s,1) ; not EXT or GR1 - it's an auto attendantexten => fax,1,Goto(ext-fax,in_fax,1)exten => h,1,Hangup ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBS