[Asterisk-Users] External IAX2 phone defined as internal behaving as from PSTN

Ian Cowley ianc at moffat.co.uk
Fri Jan 27 09:23:33 MST 2006


Iax.conf

[general]
;bindport = 4569           ; Port to bind to (IAX is 4569)
bindport = 5036           ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine)
disallow=all
allow=g729 ; 4 simultaneous allowed
allow ilbc ; prefered for iax2
allow=gsm  ; 13 Kbps (full rate), 20ms frame size 
allow=ulaw ;(g711)64 Kbps, sample-based 
allow=alaw ;(g711)64 Kbps, sample-based 
mailboxdetail=yes
jitterbuffer=yes 

context=from-internal

#include iax_additional.conf
#include iax_custom.conf

iax_additional.conf
[1055]
username=1055
type=friend
secret=#####################
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=4569
notransfer=yes
mailbox=1055 at device
host=dynamic
context=from-internal
callerid=device <1055>

Regards
ianC


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Francesco
Peeters (Asterisk)
Sent: 27 January 2006 15:22
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] External IAX2 phone defined as internal
behaving as from PSTN

On Fri, January 27, 2006 16:09, Ian Cowley said:
> 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?
>
<SNIP>

The actual iax.conf part pertaining to this phone might be helpful
here...

-- 
F Peeters
  PIII 450 - 1 GB - * 1.2 - BRIstuff 0.3.0 Pre 1 - Florz patch
  2 Sweex HFC-PCI modes=2 sync_slave=2 timer_card=0
    Cologne HFC-S pins #52, #54, #55 connected in parallel for synching.
  AMD Duron 1GHz - 1GB - * 1.2.1
  2 Sweex HFC-PCI cards
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

________________________________________________________________________
This Inbound email has been scanned by the MessageLabs Email Security
System.
For more information please visit http://www.messagelabs.com
________________________________________________________________________

________________________________________________________________________
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