I've read every forum on here, asterisk.org and google about this matter and still can't get it right. Here are the the SIP details.SIP Domainsip.provider.com:5060Outbound Proxysip10.provider.com:5090User Name1386269xxxxPassword123456789Authorization ID123456789(Auth ID and Password are the same)As i said i tried to google it but all the tutorials show example without different host names and auth id. I do not know how to describe it in sip.conf. Also have to use this sip trunk to inbound and outbound calling both. And these tutorials are saying type=peer. So i am puzzled because i think it shoud be type=friend.Please help.
How to configure sip trunk with different host details in Asterisk
asterisk
Here's what I would set in sip.confregister => username:password@sip10.provider.com[myprovidername]host=sip10.provider.comoutboundproxy=sip10.provider.com:5090type=friendfromuser=usernamedefaultuser=usernamesecret=passwordcontext=myproviderinboundRegarding register => I don't know if your sip provider requires it, but... My guess is that it will. So add this line, that's how your sip provider will call you (so it knows your IP)Now, you should be able to call now, originate a call from the command line: asterisk*CLI> channel originate SIP/myprovidername/8005551212 application playback demo-congratsTo receive a call, now add a context in extensions.conf with the name from your sip.conf and answer the call, like:[myproviderinbound]exten => _X.,1,Answer()same =>      n,Playback(demo-congrats)same =>      n,Hangup()When you're done, make sure to reload sip.conf & extensions.conf by issuing:asterisk*CLI> sip reloadasterisk*CLI> dialplan reload