hi, forget what I wrote on the post above, I looked at the link you sent me (the link of my SIP provider)
And I applied what was on it, I went to the Freepbx panel -> connectivity -> trunk and I did : add a SIP trunk (chan_sip)
in outbound CallerID I put a random number : +33651615161
Then in Outgoing -> PEER details I put :
username=(my username)
type=peer
secret=(my password)
progressinband=never
port=5060
nat=auto
insecure=very
ignoresdpversion=yes
host=213.166.103.6
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=g729&g711&g723
qualify=no
fromuser=+33651615161
And finally in Incoming -> Registration string I put :
username:password@(this is not a space I just can’t put a link)213.166.103.6/+33651615161
And I recorded (sorry for this long pavement), does it look good (just to call, not to receive call)
There is also a message when I want to modify the trunk I created:
WARNING: This trunk is not used by any route!
This trunk will not be able to be used for outbound calls until a route is setup that uses it.
Click on Outbound Routes to configure the routes.
And now I don’t know what to do ? if you could help me please
And what should I do with this ? (this is the end of the “tutorial” of my SIP provider knowing that I am in France):
Dial Plan in Asterisk
Your USA dialplan should look something like this:
exten => _91.,1,Set(callerid(num)=+1XXXXXXXXXX)
exten => _91.,2,Set(callerid(ani)=Phone number)
exten => _91.,3,AGI(agi://127.0.0.1:4577/call_log)
exten => _91.,4,Dial(sip/${EXTEN:1}@Switch2Voip,55,o)
exten => _91,5,Hangup
Asterisk United Kingdom Dial Plan
If you are also dialing to the UK and you want to use both USA and UK dialplans then your Asterisk dialplan for UK and USA should look like this:
Make sure you change the prefix on your UK campaign to 8 and leave 9 for USA. Copy evertything below this line and paste it on your dialer trunk configuration.
exten => _91.,1,Set(callerid(num)=+15555555555)
exten => _91.,2,Set(callerid(ani)=Phone number)
exten => _91.,3,AGI(agi://127.0.0.1:4577/call_log)
exten => _91.,4,Dial(sip/${EXTEN:1}@Switch2Voip,55,o)
exten => _91,5,Hangup
exten => _8011.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _8011.,2,Dial(sip/${EXTEN:1}@Switch2Voip,55,o)
exten => _8011.,3,Hangup