SIP/2.0 407 Proxy Authentication Required

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Turnaev Eugeny wrote:
> What is the standard way of dealing with
> 401/407 server headers?
> 
PJSIP does that for you already!

> Is there any callback must be installed to handle answers
> for this server messages?
>
You can provide an "on_reg_state" call_back function and single out those 
messages with pjsua_acc_info::status PJSIP_EFAILEDCREDENTIAL e.g.

> I am asking because my app seems to freeze
> after it recieves SIP/2.0 407 Proxy Authentication Required.
> 
Are the credentials OK?
Has a successful registration already occurred on *that* account?
If that is the case then switch to that account ">" and perform a manual 
re-registration with the "rr" command.

> If i make 1 call simultaneously all works ok.
> If i set more than 1.. say 6 or 8- or 16.. it freezes.
> 
> I have checked.. max calls set to 32.. max ports to 255...
> 
> I going to try to recompile with 
> #define PJSIP_AUTH_AUTO_SEND_NEXT       1
> and see if it help.
> 
> but still: what is the preferred way? some callback must be installed?
> 
> (i am working frop python with py_pjsua .. pjsip 2 month old svn version)
> 
BTW, update to the 0.9 vintage ;)

Cheers
Alain

-- 
                             ""
                           (o)(o)
                   ___o00o__(__)__o00o_____
1024D/A9F85A52 2000-01-18 Dipl.-Ing. Alain Totouom <totouom at gmx.de>
PGP Fingerprint   DA18 0DF2 FBD2 5F67 0656 452D E3A2 7531 A9F8 5A52



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux