[asterisk-users] FWD outgoing problem

Robert Lister robl at linx.net
Wed Mar 21 08:59:18 MST 2007


On Wed, Mar 21, 2007 at 04:40:02PM +0200, Bogdan Gonciulea wrote:
> [globals]
> FWDNUMBER=yyyyyy
> FWDPASSWORD=pppppppp
> FWDCIDNAME="some name"
> 
> [default]
> exten => _393.,1,Set(CALLERID(all)=${FWDCIDNAME})
> exten => _393.,n,Dial(IAX2/${FWDNUMBER}:${FWDPASSWORD}@iax2.fwdnet.net/${EXTEN:3},60,r)
> exten => _393.,n,Congestion
> 
> I have also took out the Set(CALLERID...) line and the result was the same.

That doesn't look entirely right to me, maybe it should be:

Set(CALLERID(name)=${FWDCIDNAME})
Set(CALLERID(num)=${FWDNUMBER})

Set(CALLERID(all)= is for setting the entire caller ID header, so it
should look something like this if you use it:

Set(CALLERID(all)="Joe User" <1234>)

I think the things after DIAL(IAX2/..) should match what you have configured 
in iax.conf for iax peer:

iax.conf (from some example I found):

[FWDIAXPeer]
type=peer
disallow = all
allow=ulaw ; FWD only do ulaw
host=iax2.fwdnet.net
qualify=300 ; optional of course
secret=secret
context=from-fwd
username=321321

Then: Dial(IAX2/${FWDNUMBER}@IAXpeerFWD/${EXTEN:3},45)



More information about the asterisk-users mailing list