Re: [Asterisk-Users] Dialing Out through Provider with Authentication

2004-09-10 Thread Begumisa Gerald M
  On Thu, 9 Sep 2004, Karl Brose wrote:
 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.

Cool!  Just found that in the handbook too a second or two ago :-)
Thanks for taking time to answer this.

Three Cheers!
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


Re: [Asterisk-Users] Dialing Out through Provider with Authentication

2004-09-10 Thread Johannes Hollerer




Hi,

I tried to make a call to extension 2001 with the setting [EMAIL PROTECTED] (Detailed:
exten = _7.,2,Dial(SIP/[EMAIL PROTECTED]/${EXTEN:1}) 
which does not work at all - i always get the failure message: No such host provider.com/2001 (the number i dialed) - why ??
when i try the same with a peer agent (exten = _7.,2,Dial(SIP/provider_out/${EXTEN:1}) - i always get the failure message 
WARNING[-178521168]: chan_sip.c:680 retrans_pkt: Maximum retries exceeded on call [EMAIL PROTECTED] for seqno 102 (Critical Request)

What am i missing ??
I am running out if ideas !.

Johannes

Am Fr, den 10.09.2004 schrieb Begumisa Gerald M um 12:04:

  On Thu, 9 Sep 2004, Karl Brose wrote:
 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.

Cool!  Just found that in the handbook too a second or two ago :-)
Thanks for taking time to answer this.

Three Cheers!
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

Re: [Asterisk-Users] Dialing Out through Provider with Authentication

2004-09-10 Thread Begumisa Gerald M
  On Fri, 10 Sep 2004, Johannes Hollerer wrote:

 I tried to make a call to extension 2001 with the setting
 [EMAIL PROTECTED] (Detailed: exten =
 _7.,2,Dial(SIP/[EMAIL PROTECTED]/${EXTEN:1})  which does not work at
 all - i always get the failure message: No such host
 provider.com/2001 (the number i dialed) - why ??

What I understood from Karl's message is that you need to create a peer in
sip.conf.  For example below:

-- sip.conf --
[myprovider]
type=peer
username=USERNAME
host=PROVIDER.COM
secret=SECRET
--

Then in extensions.conf, do the following:

--
exten = _7.,2,Dial(SIP/myprovider/${EXTEN:1})
--

This should work.  What Karl meant is that using the statement below:

--
exten = _7.,2,Dial(SIP/[EMAIL PROTECTED])
--

Will only work if you are dialilng a *specific* extension on provider.com.
The statement below:

--
exten = _7.,2,Dial(SIP/[EMAIL PROTECTED]/${EXTEN:1})
--

Is illegal.


Cheers,
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] Dialing Out through Provider with Authentication

2004-09-09 Thread Johannes Hollerer




Hi,

I try to dial out through a Provider, but for that i need to be authenticated - it actually does not work !.
What kind of dial command do i have to use when i:
- Want to authenticate the user 
- And dial with that authenticated user an extension
 
What i tried so far 
exten = _7.,2,Dial(SIP/USERNAME:PASSWORD@PROVIDER.COM/${EXTEN:1})

what have i done wrong ?
i always get back a Service Unavailable !

johannes


___
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

Re: [Asterisk-Users] Dialing Out through Provider with Authentication

2004-09-09 Thread Begumisa Gerald M
  On Thu, 9 Sep 2004, Johannes Hollerer wrote:
 I try to dial out through a Provider, but for that i need to be
 authenticated - it actually does not work !.

For my tests I did not need to be authenticated.  This is what I used in
asterisk:

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

When I tried to use your scenario, as below

exten = _7.,2,Dial(SIP/USERNAME:[EMAIL PROTECTED]/${EXTEN:1})

Here's what I get in my logs:

Sep  9 18:10:56 WARNING[137570304]: chan_sip.c:902 create_addr: No such
host: PROVIDER.COM/72312

What I gather from this is that its not legal to Dial() like that.  In my
limited SIP knowledge, it makes sense - you do not need to have a username
and / or password to place calls to extensions that a given provider (e.g
PROVIDER.COM) serves - if they do not serve those extensions, they will
give a 404 Not Found error.

Hope that helps...


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


Re: [Asterisk-Users] Dialing Out through Provider with Authentication

2004-09-09 Thread Johannes Hollerer




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.

So it seems that i have to configure asterisk that way, that it is dialing using the user agent !.
How can i do that - how does the configuration look like ?

any suggestions 
johannes

Am Do, den 09.09.2004 schrieb Begumisa Gerald M um 20:37:

  On Thu, 9 Sep 2004, Johannes Hollerer wrote:
 I try to dial out through a Provider, but for that i need to be
 authenticated - it actually does not work !.

For my tests I did not need to be authenticated.  This is what I used in
asterisk:

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

When I tried to use your scenario, as below

exten = _7.,2,Dial(SIP/USERNAME:[EMAIL PROTECTED]/${EXTEN:1})

Here's what I get in my logs:

Sep  9 18:10:56 WARNING[137570304]: chan_sip.c:902 create_addr: No such
host: PROVIDER.COM/72312

What I gather from this is that its not legal to Dial() like that.  In my
limited SIP knowledge, it makes sense - you do not need to have a username
and / or password to place calls to extensions that a given provider (e.g
PROVIDER.COM) serves - if they do not serve those extensions, they will
give a 404 Not Found error.

Hope that helps...


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

Re: [Asterisk-Users] Dialing Out through Provider with Authentication

2004-09-09 Thread Begumisa Gerald M
 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