[Sems] di_dial and auth
Andreas Granig
agranig at sipwise.com
Sun Jul 29 14:40:34 CEST 2007
Hi,
I'm currently playing around with xmlrpc2di and di_dial, and I can't get
my SEMS to authenticate at the server. Scenario is:
[SEMS] - [SER for SEMS at 127.0.0.1] - [OpenSER at 127.0.0.1 and LAN]
In my python-cli I have:
>>> s.dial_auth("announcement", "default_en", "sip:test1 at 127.0.0.1",
"sip:test2 at 127.0.0.1", "127.0.0.1", "test1", "foobar")
The first INVITE reaches my OpenSER, but it replies with "407 Proxy
Auth". At this point, no more INVITE with credentials is being sent by
OpenSER (at least none is seen on the net). SEMS logs this:
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(XMLRPC2DI.cpp)(execute)(318): XMLRPC2DI 'dial_auth': function 'dial_auth'
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(DIDial.cpp)(dialout_auth)(157): dialout application 'announcement',
user 'default_en', from 'sip:test1 at 127.0.0.1', to 'sip:test2 at 127.0.0.1'
Jul 29 14:37:20 proxy1 Sems[19966]: Warning: (AmApi.cpp)(onInvite)(53):
discarding session parameters to new session.
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(Announcement.cpp)(onInvite)(81): trying
'/usr/local/sems/lib/sems/audio//default_en.wav'
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmSipDialog.cpp)(updateStatusFromLocalRequest)(94): dialog callid is
empty, updating from UACRequest
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmSipDialog.cpp)(updateStatusFromLocalRequest)(97): local_tag =
0363380F-46AC8A0000070FDB-B7C5EBB0
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmRtpStream.cpp)(setLocalPort)(162): local rtp port set to 10014
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmUtils.cpp)(write_to_socket)(590): sending:
<:t_uac_dlg:/tmp/sems-rsp.sock INVITE sip:test2 at 127.0.0.1 . From:
<sip:test1 at 127.0.0.1>;tag=0363380F-46AC8A0000070FDB-B7C5EBB0 To:
<sip:test2 at 127.0.0.1> CSeq: 10 INVITE Call-ID:
3E38F192-46AC8A0000070FE5-B7C5EBB0 at 192.168.101.11 Contact:
<sip:default_en@!!> Content-Type: application/sdp Max-Forwards: 70
User-Agent: Sipwise media server . v=0 o=username 0 0 IN IP4
192.168.101.11 s=session c=IN IP4 192.168.101.11 t=0 0 m=audio 10014
RTP/AVP 0 8 96 97 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000 a=rtpmap:97 iLBC/8000 . >
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmUtils.cpp)(write_to_socket)(616): write to unix socket: completed
Jul 29 14:37:20 proxy1 Sems[19966]: Debug: (AmThread.cpp)(start)(135):
Thread 0 is just created.
Jul 29 14:37:20 proxy1 /usr/local/ser-sems/./sbin/ser[19997]: Warning:
run_failure_handlers: no UAC support (0, 768)
Jul 29 14:37:20 proxy1 Sems[19966]: Debug: (AmServer.cpp)(run)(93):
revents = 1
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmCtrlInterface.cpp)(cacheMsg)(186): recv-ed: <407 Proxy Authentication
Required . . . Via: SIP/2.0/UDP
127.0.0.1:7060;branch=z9hG4bK46d7.1abaafa5.0;rport=7060 To:
<sip:test2 at 127.0.0.1>;tag=e832ac48271d673bbf6153b76dbd7543.40d0 From:
<sip:test1 at 127.0.0.1>;tag=0363380F-46AC8A0000070FDB-B7C5EBB0 CSeq: 10
INVITE Call-ID: 3E38F192-46AC8A0000070FE5-B7C5EBB0 at 192.168.101.11
Proxy-Authenticate: Digest realm="127.0.0.1",
nonce="46ac8b2cce1dfc8b09754b8010a832e0662428b5" Server: Sipwise proxy
Content-Length: 0 >
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmInterfaceHandler.cpp)(handleRequest)(244): response from Ser: 407
Proxy Authentication Required
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmEventQueue.cpp)(postEvent)(48): AmEventQueue: trying to post event
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmEventQueue.cpp)(postEvent)(56): AmEventQueue: event posted
Jul 29 14:37:20 proxy1 Sems[19966]: Debug: (AmServer.cpp)(run)(93):
revents = 0
Jul 29 14:37:20 proxy1 Sems[19966]: Debug: (AmThread.cpp)(_start)(68):
Thread 3067472816 is starting.
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmEventQueue.cpp)(processEvents)(69): before processing event
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmSession.cpp)(process)(426): AmSession::process
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmSession.cpp)(process)(430): Session received SIP Event
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmSipDialog.cpp)(updateStatus)(176): updateStatus(reply): transaction
found!
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmSession.cpp)(onSipReply)(534): Dialog status changed Pending ->
Disconnected (stopped=false)
Jul 29 14:37:20 proxy1 Sems[19966]: Debug:
(AmEventQueue.cpp)(processEvents)(71): event processed
Jul 29 14:37:20 proxy1 Sems[19966]: Debug: (AmSession.cpp)(run)(301):
3E38F192-46AC8A0000070FE5-B7C5EBB0 at 192.168.101.11
dlg.getUACTransPending() = 0
Any hints are very much appreciated.
Andreas
More information about the Sems
mailing list