I’ve bought a virtual number (DID) to a proveider and I can make call from an analog number to that DID and gets the call to an extension on my PBX which running on Asterisk.
This is the sip.conf code
[trunk] host=sip.netelip.com defaultuser=xxxxxx secret=xxxxxxx type=friend disallow=all allow=alaw allow=ulaw allow=g722 allow=gsm context=users insecure=port,invite qualify=15000
And this is the extensions.conf
exten => _X.,1,Dial(SIP/trunk,30) exten => _X.,n,Dial(SIP/julian, 30)
What I want to do is from any extension call to a number a take out the call through the DID. But that is not working.
The second lines is when someone makes a call to that DID, SIP/julian rings and that works fine!
How I must configure the outbound call?
Thanks in advance and best regards.