How to make outgoing calls via SIP provider

Hello everyone,

I am a newbie on asterisk and we are doing a project on SugarCRM integration with asterisk 1.6. I just want to ask how could i make an outgoing call via SIP? I’m using voipinoy.org and iptel.org. I can receive calls but i can’t make an outgoing call. everytime I try to call from my xlite i see this output from my cli:

chan_sip.c:18002 handle_request_invite: Call from ‘3000’ to extension ‘63322625584’ rejected because extension not found.

here is my sip.conf and extensions.conf.

sip.conf

[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
register =>username@iptel.org:password@iptel.org
register =>username:password@sip.voipinoy.org

VoiPINOY]
username=username
type=friend
secret=password
host=voipinoy.org
fromuser=username
context=default ; change for proper context
allow=g729 ; we support ulaw,alaw,ilbc,gsm,g723.1,g726,g729a
trustrpid = yes
sendrpid = yes
canreinvite = no

[iptel]
type=friend
username=username
secret=password
fromdomain=iptel.org
host=iptel.org

[3000]
username=3000
secret=password
host=dynamic
nat=yes
type=friend
qualify=yes
context=incoming

[3001]
username=3001
secret=password
host=dynamic
nat=yes
type=friend
qualify=yes
context=incoming

[3002]
username=3002
secret=password
host=dynamic
nat=yes
type=friend
qualify=yes
context=incoming

extensions.conf

[general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]

[default]

exten => s, 1, AGI(phpscriptnew.php)

[incoming]

exten => 3000, 1, Dial(SIP/3000,20)
exten => 3000, n, Hangup()

exten => 3001, 1, Dial(SIP/3001, 20)
exten => 3001, n, Hangup()

exten => 3002, 1, Dial(SIP/3002,20)
exten => 3002, n, Hangup()

[outgoing]
exten => _9.,1,SetCIDNum(SILA2010)
exten => _9.,n,SetCIDName(SILA)
exten => _9., n Dial(SIP/${EXTEN:1}@iptel)
exten => _9., n, Congestion()
exten => _9., n, Hangup()

[outbound-local]

exten => _6332XXXXXXX, 1,SetCIDNum(SILA2010)
exten => _6332XXXXXXX, n,SetCIDName(SILA)
exten => _6332XXXXXXX, n, Dial(SIP/${EXTEN}@VoiPINOY, 20)
exten => _6332XXXXXXX, n, Congestion()
exten => _6332XXXXXXX, n, Hangup()

please help… I’m really confused.

Thanks.

sorry I’ve solved the problem, thank you…

Could you please explain how you solved this issue, i am in the same situation as you were. I am also a newbie.
I am using IPTEL.
Thanks

He didn’t understand contexts. 3000 was in the context incoming, which is only allowed to make calls to local extensions. It should have been in a context allowed to make outgoing calls, which would typically also have included an include line for the incoming context. Exactly what it should have been depends on local policies - there are too many contexts defined to make the simple assumption that internal callers can call anything and external ones can only call internal numbers.