Asterisk/trixbox not calling outgoing

hi all,

how can i set up my asterisk to use our PBX siemens for outgoing calling?

sip_additional.conf
[4444]
type=friend
usename=4444
secret=4444
dial=SIP/4444
allowguest=yes
insecure=yes
promiscdir=yes
careinvite=yes
dtmfmode=rfc2833

extension.conf
exten => 4444,1,Dial(SIP/4444,130,t)

is it correct ?

regards,

it really depends on how your Asterisk is physically connected to your PBX

asterisk server ip address 10.2.0.231 with alias eth0:0 10.9.0.200

pbx siemens ip address 10.9.0.4 , where the username is 7729 with no password just it (PEER)
regards

OK, it seems your Siemens PBX is SIP-capable and it’s already connected over SIP trunk. I would do something like this:

configure a trunk between Asterisk & PBX

[siemens]
secret = 
trunkstyle = customvoip
username = 
trunkname = 
callerid =
registersip = no
host = 
context = pbx-out
...

Define a prefix for dialing out through PBX, I use 9; don’t forget to strip it before passing the number to PBX

[pbx-out]
exten => _9Z.,1,Goto(trunkdial,${EXTEN:1},1)

Simple macro is used to actually ‘dial’

[trunkdial]
exten => _Z.,1,Dial(SIP/siemens/${EXTEN})
exten => _Z.,2,Congestion(5)
exten => _Z.,3,Hangup

Hope it helps