Hello, I have a problem with asterisk when dial out to a SIP provider. Asterisk send a INVITE with no credentials, the provider reply with a 401 Unauthorized. However, Asterisk DOES NOT resend the invite again with credentials. But it hangs there (maybe waiting for a ok) It is this a bug in asterisk or the provider is supposed to send something else rather than a 401 as answer for a INVITE ? The version was taken 2 days ago from CVS. TNX, MTM __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
mtm spm wrote:> Hello, > > I have a problem with asterisk when dial out to a SIP > provider. > Asterisk send a INVITE with no credentials, the > provider reply with a 401 Unauthorized. > However, Asterisk DOES NOT resend the invite again > with credentials. But it hangs there (maybe waiting > for a ok) > > It is this a bug in asterisk or the provider is > supposed to send something else rather than a 401 > as answer for a INVITE ?Hello! In the Asterisk command line interface, write "sip debug" to see all SIP transactions. Make sure that asterisk actually receives the response from the SIP provider and that there's no NAT disturbing the session. It sounds like Asterisk does not receive the 401 unauthorized and therefore tries again. The first Invite is without credentials, since digest authentication needs input from the server to create credentials. If there's a NAT in the middle, you'll find plenty of documentation on how to solve the problem (or not) on the Asterisk Wiki at http://www.voip-info.org Best regards, /Olle
Maybe this is a silly question but I am a beginer with Asterisk. I want now to be able to write a script or something so that I can dial out a number and when the call is answered to play a .gsm file or an output from festival. I need to call this numbers on demand(from another program), since these are allerts when some events happpen. Any ideea how to do that? Tnx, MTM __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
see sample.call in the Asterisk source directory On Fri, 2003-11-07 at 11:52, mtm spm wrote:> Maybe this is a silly question but I am a beginer with > Asterisk. > > I want now to be able to write a script or something > so that I can dial out a number and when the call is > answered to play a .gsm file or an output from > festival. > > I need to call this numbers on demand(from another > program), since these are allerts when some > events happpen. > > Any ideea how to do that? > > Tnx, > MTM > > > __________________________________ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users-- Sample configs, scripts, more : http://www.fnords.org/~eric/asterisk/ BTEL Consulting 504-899-1387 or 850-484-4545 or 877-677-9643
Philipp von Klitzing
2003-Nov-07 11:26 UTC
[Asterisk-Users] Scripting(or something) question
Hi!> I want now to be able to write a script or something > so that I can dial out a number and when the call is > answered to play a .gsm file or an output from > festival.Look at sample.call and the Playback() application. Cheers, Philipp
Thank you guys very much, it work great based on sample.call. Have a nice weekend. MTM __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
mtm spm wrote:> Maybe this is a silly question but I am a beginer with > Asterisk. > > I want now to be able to write a script or something > so that I can dial out a number and when the call is > answered to play a .gsm file or an output from > festival. > > I need to call this numbers on demand(from another > program), since these are allerts when some > events happpen. > > Any ideea how to do that?http://www.voip-info.org/wiki-Asterisk+auto-dial+out is a good start. Not the full solution, but propably part of it. /O