In order to dial out to a sip provider, you need to configure that provider in your sip.conf file
as a peer with your proper username and secret, etc.
The dial command syntax is
Dial ( SIP/<peer>/Extension)
or
Dial(SIP/[EMAIL PROTECTED])


The registration function has nothing to do with dialing out, it's only useful
for receiving calls if your IP addresss is not permanently known to your provider.
It registers your location with the provider. You don't need to do that for
making outgoing calls. The INVITE of your outgoing call will try to authenticate
you automatically based on the info in your peer definition for the provider.




Begumisa Gerald M wrote:

   > But the provider also has a gateway to provide the possibility to
   > call to the pstn (and the pstn number exists) - so what i tried to
   > achive is to call an external pstn number thru that gateway.  This
   > works if i connect the xlite client directly to the provider - then
   > i can dial the external number.

Alright, I see what you mean.  Have you entered a "register" statement in
sip.conf, then? I.e something like

register => USER:[EMAIL PROTECTED]/EXTENSION

What I understand is that this will result in your Asterisk Server
registering on that provider's server as one of its users.  Now the
question is how you dial out through this registration... Ya?  That much I
don't claim to know.  I just hope guys who have done this are reading this
thread.  I'd like to learn this too.

However try using the dial below with the above register statement in
place (don't forget to reload your Asterisk server).

exten => _7.,2,Dial(SIP/PROVIDER.COM/${EXTEN:1})

Ideas, anyone else?


Gerald _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users



_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to