Ron McCarthy
2007-May-16 06:21 UTC
[asterisk-users] SIP INVITE failing and AgentCallBackLogin()
Hi List, Ive got a few * boxes connecting together, one box is doing AgentCallBackLogin() and then the 2nd box is holding some phones at a remote site. I have users login to the main box and * shows the user is logged into a extension that resides on the other box, problem is, when I go to make a call to a agent, I get "May 16 05:59:08 NOTICE[13897]: chan_sip.c:9750 handle_response_invite: Failed to authenticate on INVITE to '"Ex 301" <sip:301@192.168.166.10>;tag=as4e18cbb4'"I have a peer setup in the box doing the AgentCallBackLogin() with insecure=very, ive also tried insecure=invite as well, no luck!! Asterisk 1.2.13 I am using on both boxes. Can anyone provide any help on this? I think is rellly weird invites are failing when im telling * to ignore them basically!!! Phones are Snom 360's as well. Thanks! Ron -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070516/76362eb5/attachment.htm
Robert Lister
2007-May-16 09:49 UTC
[asterisk-users] SIP INVITE failing and AgentCallBackLogin()
On Wed, May 16, 2007 at 06:21:30AM -0700, Ron McCarthy wrote:> Hi List, > > Ive got a few * boxes connecting together, one box is doing > AgentCallBackLogin() and then the 2nd box is holding some phones at a remote > site. I have users login to the main box and * shows the user is logged into > a extension that resides on the other box, problem is, when I go to make a > call to a agent, I get > > "May 16 05:59:08 NOTICE[13897]: chan_sip.c:9750 handle_response_invite: > Failed to authenticate on INVITE to '"Ex 301" <sip:301@192.168.166.10 > >;tag=as4e18cbb4'" > > I have a peer setup in the box doing the AgentCallBackLogin() with > insecure=very, ive also tried insecure=invite as well, no luck!!I'm not sure what the link you have here between SIP and Agents? Agents use chan_agent Dial(Agent/nnn) but SIP calls use chan_sip, so the two don't interact in the dialplan. (SIP User 301 is not equivalent to Agent 301, they are completely separate.) The error you have pasted here looks like either type= problem or the extension 301 doesn't exist in sip.conf of the box that the invite is being placed to. (or the IP address for the peer is wrong, etc.) I would not rely on AgentCallBackLogin(). chan_agent has limited use, which introduces a few strange problems, unchangable assumptions about how you want to handle calls, and the AgentCallBackLogin() feature has been (annoyingly) been deprecated by digium as of 1.4 The suggestion is to replicate the AgentCallBackLogin() functionality with dialplan logic, and dynamic queue members. This is possible, but very complicated (you do NOT want to see my extensions.conf!) and there is no neat way to handle hints for blf keys when you do this, as you lose the ability to dynamically track Agents in the hints config, and I haven't found a way to dynamically update the hints that doesn't crash asterisk. If you don't want BLF keys, this won't cause a problem. Rob -- Robert Lister - London Internet Exchange - http://www.linx.net/ sip: robl@linx.net - inoc-dba: 5459*710 - tel: +44 (0)20 7645 3510