[Freeswitch-users] Newbie: Avaya SES <>Freeswitch 407 Proxy Authentication error
Gerry Hull
gerry at pstn2.net
Tue Oct 14 07:18:50 PDT 2008
On Mon, Oct 13, 2008 at 12:59 PM, Brian West <brian at freeswitch.org> wrote:
> You need to add <param name="extension" value="avayaSES"/> otherwise
> the register contact will be the username. aka 3824, its trying to
> route to 3824 in context public.
>
> /b
>
> On Oct 13, 2008, at 9:53 AM, Gerry Hull wrote:
>
>
Hi Brian,
Still no luck. I guess I'm still missing something. Let me explain and
provide more details.
We have several Avaya extensions registered in FS; we have the Avaya switch
direct inbound calls to these extensions.
The idea is to park the inbound calls in FS; we will then transfer the calls
later using event_socket. However, we cannot get
FS to answer the calls due to the proxy authentication error.
Here's the configuration:
/sip_profiles/internal/AvayaInternal.xml:
<include>
<gateway name="Avaya">
<param name="extension" value="Avaya"/>
<param name="username" value="3823"/>
<param name="password" value="xxx"/>
<param name="proxy" value="1.2.3.4"/>
<param name="realm" value="1.2.3.4"/>
<param name="expire-seconds" value="60"/>
<param name="register" value="true"/>
<param name="register-transport" value="udp"/>
<param name="retry_seconds" value="30"/>
</gateway>
</include>
/dialplan/public.xml:
<extension name="Avaya">
<condition field="destination_number" expression="^(3823)$">
<action application="transfer" data="5060 XML default"/>
</condition>
</extension>
and here's the debug info:
------------------------------------------------------------------------
INVITE sip:Avaya at 10.0.6.114:5060;transport=udp SIP/2.0
Call-ID: 05c8e85a1a5dd14ea549c5a6a00
CSeq: 1 INVITE
From: "Station 216" <sip:216 at sdc.com:5061
>;tag=05c8e85a1a5dd14da549c5a6a00
Record-Route: <sip:10.0.2.154:5060;lr>,<sip:10.0.2.151:5061
;lr;transport=tls>
To: "3823" <sip:3823 at sdc.com <sip%3A3823 at sdc.com>>
Via: SIP/2.0/UDP
10.0.2.154:5060;branch=z9hG4bK03030353535336363671ef.0,SIP/2.0/TLS
10.0.2.151;psrrposn=2;received=10
.0.2.151;branch=z9hG4bK05c8e85a1a5dd14fa549c5a6a00
Content-Length: 150
Content-Type: application/sdp
Contact: "Station 216" <sip:216 at 10.0.2.151:5061;transport=tls>
Max-Forwards: 69
User-Agent: Avaya CM/R014x.00.1.731.2
Allow: INVITE,CANCEL,BYE,ACK,PRACK,SUBSCRIBE,NOTIFY,REFER,OPTIONS
Accept-Contact: *;+avaya-cm-line=1
Supported: 100rel,timer,replaces,join,histinfo
Alert-Info: <cid:internal at sdc.com <cid%3Ainternal at sdc.com>
>;avaya-cm-alert-type=internal
Min-SE: 1200
Session-Expires: 1200;refresher=uac
P-Asserted-Identity: "Station 216" <sip:216 at sdc.com:5061>
History-Info: <sip:3823 at sdc.com <sip%3A3823 at sdc.com>>;index=1,"3823" <
sip:3823 at sdc.com <sip%3A3823 at sdc.com>>;index=1.1
v=0
o=- 1 1 IN IP4 10.0.2.151
s=-
c=IN IP4 10.0.2.152
t=0 0
m=audio 3188 RTP/AVP 0 127
a=rtpmap:0 PCMU/8000
a=rtpmap:127 telephone-event/8000
------------------------------------------------------------------------
tport(01833120): msg 01872960 (1194 bytes) from
udp/10.0.2.154:5060/sipnext=00000000
nta: received INVITE sip:Avaya at 10.0.6.114:5060;transport=udp SIP/2.0 (CSeq
1)
nta: canonizing sip:Avaya at 10.0.6.114:5060 with contact
nta: INVITE (1) going to a default leg
nta: timer set to 200 ms
soa_clone(static::017FD508, 017FED48, 0188E450) called
soa_set_params(static::0189BB50, ...) called
nta_leg_tcreate(00FEDDE8)
soa_init_offer_answer(static::0189BB50) called
soa_set_remote_sdp(static::0189BB50, 00000000, 0189E804, 150) called
nua(0188E450): adding session usage
tport_tsend(01833120) tpn = UDP/10.0.2.154:5060
tport_resolve addrinfo = 10.0.2.154:5060
tport(01833120): not found by name UDP/10.0.2.154:5060
tport_vsend(01833120): 515 bytes of 515 to UDP/10.0.2.154:5060
tport_vsend returned 515
send 515 bytes to udp/[10.0.2.154]:5060 at 14:09:50.666454:
------------------------------------------------------------------------
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
10.0.2.154:5060;branch=z9hG4bK03030353535336363671ef.0,SIP/2.0/TLS
10.0.2.151;psrrposn=2;received=10
.0.2.151;branch=z9hG4bK05c8e85a1a5dd14fa549c5a6a00
Record-Route: <sip:10.0.2.154:5060;lr>
Record-Route: <sip:10.0.2.151:5061;lr;transport=tls>
From: "Station 216" <sip:216 at sdc.com:5061
>;tag=05c8e85a1a5dd14da549c5a6a00
To: "3823" <sip:3823 at sdc.com <sip%3A3823 at sdc.com>>
Call-ID: 05c8e85a1a5dd14ea549c5a6a00
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-9570M
Content-Length: 0
------------------------------------------------------------------------
nta: sent 100 Trying for INVITE (1)
nua(0188E450): event i_invite 100 Trying
nua(0188E450): call state changed: init -> received, received offer
soa_get_remote_sdp(static::0189BB50, [029EFC10], [029EFC0C], [00000000])
called
nua(0188E450): event i_state 100 Trying
nua(0188E450): sent signal r_respond
nua(0188E450): sent signal r_destroy
nua(0188E450): event i_state dropped
nua(0188E450): recv signal r_respond 407 Proxy Authentication Required
soa_set_params(static::0189BB50, ...) called
soa_clear_remote_sdp(static::0189BB50) called
tport_tsend(01833120) tpn = UDP/10.0.2.154:5060
tport_resolve addrinfo = 10.0.2.154:5060
tport(01833120): not found by name UDP/10.0.2.154:5060
tport_vsend(01833120): 893 bytes of 893 to UDP/10.0.2.154:5060
tport_vsend returned 893
send 893 bytes to udp/[10.0.2.154]:5060 at 14:09:50.697704:
------------------------------------------------------------------------
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP
10.0.2.154:5060;branch=z9hG4bK03030353535336363671ef.0,SIP/2.0/TLS
10.0.2.151;psrrposn=2;received=10
.0.2.151;branch=z9hG4bK05c8e85a1a5dd14fa549c5a6a00
From: "Station 216" <sip:216 at sdc.com:5061
>;tag=05c8e85a1a5dd14da549c5a6a00
To: "3823" <sip:3823 at sdc.com <sip%3A3823 at sdc.com>>;tag=ptgKFvSeyaDrQ
Call-ID: 05c8e85a1a5dd14ea549c5a6a00
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-9570M
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH
Supported: 100rel, timer, precondition, path, replaces
Allow-Events: talk, presence, dialog, call-info, sla,
include-session-description, presence.winfo, message-summary
Proxy-Authenticate: Digest realm="sdc.com",
nonce="21e6dda0-ee03-674b-8df1-08731d42fd76", algorithm=MD5, qop="auth"
Content-Length: 0
------------------------------------------------------------------------
nta: sent 407 Proxy Authentication Required for INVITE (1)
nua(0188E450): removing session usage
nua(0188E450): call state changed: received -> terminated
nua(0188E450): event i_state 407 Proxy Authentication Required
nua(0188E450): event i_terminated 407 Proxy Authentication Required
soa_destroy(static::0189BB50) called
nta_leg_destroy(00FEDDE8)
nua(0188E450): recv signal r_destroy
nta_leg_destroy(00000000)
tport_wakeup_pri(01833120): events IN
tport_recv_event(01833120)
tport(01833120) msg 018390F8 from (udp/10.0.6.114:5060) has 341 bytes,
veclen = 1
recv 341 bytes from udp/[10.0.2.154]:32772 at 14:09:50.697704:
------------------------------------------------------------------------
ACK sip:Avaya at 10.0.6.114:5060;transport=udp SIP/2.0
From: "Station 216" <sip:216 at sdc.com:5061
>;tag=05c8e85a1a5dd14da549c5a6a00
To: "3823" <sip:3823 at sdc.com <sip%3A3823 at sdc.com>>;tag=ptgKFvSeyaDrQ
CSeq: 1 ACK
Call-ID: 05c8e85a1a5dd14ea549c5a6a00
Max-Forwards: 69
Via: SIP/2.0/UDP 10.0.2.154:5060;branch=z9hG4bK03030353535336363671ef.0
Content-Length: 0
------------------------------------------------------------------------
tport(01833120): msg 018390F8 (341 bytes) from udp/10.0.2.154:5060/sip
next=00000000 <http://10.0.2.154:5060/sipnext=00000000>
nta: received ACK sip:Avaya at 10.0.6.114:5060;transport=udp SIP/2.0 (CSeq 1)
nta: ACK (1) is going to INVITE (1)
nta: timer set next to 4844 ms
nta: timer I fired, terminate 407 response
incoming_reclaim_all(00000000, 00000000, 029EFEB8)
nta_incoming_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free
nta: timer not set
TIA,
Gerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081014/3376cc4f/attachment-0002.html
More information about the FreeSWITCH-users
mailing list