[Asterisk-Users] External IAX2 phone defined as internal behaving as
from PSTN
Ian Cowley
ianc at moffat.co.uk
Fri Jan 27 08:09:33 MST 2006
Have asterisk at home 1.2.1
The server is on an internal network eg 10.10.10.10
It is NAT'd 1:1 via Checkpoint firewall to external public IP eg
50.50.50.50
The remote IAX2 phone (ATCOM320) is configured to call 50.50.50.50 on
extension 1055.
Outbound calls to 1055 work perfectly.
Inbound calls from 1055 get picked up as if it were an external call
(see below) and goes straight to the ring group macro.
The same phone either on the same internal network to the asterisk or on
a VPN to said network work fine. Obviously asterisk thinks this call is
external.
How do change this?
asterisk1*CLI>
-- Accepting AUTHENTICATED call from 99.99.99.212: {faked}
> requested format = g729,
> requested prefs = (),
> actual format = g729,
> host prefs = (g729|gsm|ulaw|alaw),
> priority = mine
-- Executing Macro("IAX2/1055-4",
"rg-group|ringall|60||1000-1001-1007-1050-1450-1600") in new stack
-- Executing Macro("IAX2/1055-4", "user-callerid") in new stack
-- Executing DBget("IAX2/1055-4", "AMPUSER=DEVICE/1055/user") in new
stack
-- DBget: varname=AMPUSER, family=DEVICE, key=1055/user
-- DBget: set variable AMPUSER to 1055
-- Executing DBget("IAX2/1055-4",
"AMPUSERCIDNAME=AMPUSER/1055/cidname") in new stack
-- DBget: varname=AMPUSERCIDNAME, family=AMPUSER, key=1055/cidname
-- DBget: set variable AMPUSERCIDNAME to EXTERNAL-CALLER
-- Executing GotoIf("IAX2/1055-4", "0?5") in new stack
-- Executing SetCallerID("IAX2/1055-4", ""EXTERNAL-CALLER" <1055>")
in new stack
-- Executing NoOp("IAX2/1055-4", "Using CallerID "EXTERNAL-CALLER"
<1055>") in new stack
-- Executing GotoIf("IAX2/1055-4", "0?4:3") in new stack
-- Goto (macro-rg-group,s,3)
-- Executing SetCIDName("IAX2/1055-4", "EXTERNAL-CALLER") in new
stack
-- Executing SetVar("IAX2/1055-4", "RGPREFIX=") in new stack
-- Executing SetCIDName("IAX2/1055-4", "EXTERNAL-CALLER") in new
stack
-- Executing SetVar("IAX2/1055-4", "RecordMethod=Group") in new
stack
-- Executing Macro("IAX2/1055-4", "record-enable|1|Group") in new
stack
-- Executing GotoIf("IAX2/1055-4", "0 > 0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing AGI("IAX2/1055-4",
"recordingcheck|20060126-193156|1138303916.91") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
-- AGI Script recordingcheck completed, returning 0
-- Executing NoOp("IAX2/1055-4", "No recording needed") in new stack
-- Executing SetVar("IAX2/1055-4", "RingGroupMethod=ringall") in new
stack
-- Executing Macro("IAX2/1055-4",
"dial|60|tr|1000-1001-1007-1050-1450-1600") in new stack
-- Executing GotoIf("IAX2/1055-4", "1?4:2") in new stack
-- Goto (macro-dial,s,4)
-- Executing AGI("IAX2/1055-4", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
_______________________________________________________________________
This e-mail message and any attachments may be confidential and may also be a privileged communication.
It is intended solely for the person(s)to whom it is addressed. If you are not the intended addressee of the message you must take no action based on it.
Please reply to this message to let us know you received it in error and also delete the message from your system.
This disclaimer confirms that MessageLabs have swept e-mail and attachments for viruses on behalf of RSM Moffat Ltd.
However it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses.
#### RSM MOFFAT LTD Registered in UK. support at moffat.co.uk ####
More information about the asterisk-users
mailing list