Re: Unsupported Media Type, Bayonne2

David Sugar <[email protected]> Tue, 11 Apr 2006 08:18:24 -0400
Newsgroups gmane.comp.gnu.bayonne.devel
Message-ID <[email protected]>
What I am looking for and don't see is the Bayonne reply SDP.  Hmm...in 
the "register" statement, do you have an encoding= statement?  You can 
do that now and specify encoding per sip registration entity....

Try encoding=alaw in your register statement.  You can also force the 
payload map both globally and in the register statement.  Hence, maybe 
"encoding=alaw payload=8", though it is supposed to parse the attributes 
to match the rtpmap.

Alexandre BOULANGER wrote:
> Hi David,
> 
> 
> Here's a dump about the negociation issue
> 
> The pstnGateway has G729, G729A, PCMA and PCMU
> My bayonneSvr has G723, G711 and GSM
> 
> Of course I've clean wiped my old bayonne components and compiled the
> last ones.
> Tell me if you need more information
> 
> 
> thanks
> 
> 
> Le jeudi 30 mars 2006 à 09:32 -0500, David Sugar a écrit :
>> You need 1.2.1, where I fixed the sdp negotiation fully and think
>> finally correctly,  to examine the rtpmap of the remote's attributes.  I
>> have also considered changes to allow Bayonne to support and negotiate
>> sessions for which it has no direct codec.  After all, Bayonne need not
>> know the audio data to play and record prompts.  Hence, it could then
>> potentially record and playback a g729 audio file even if it cannot know
>> what it is recording and playing :).  To do that, I need to define
>> additional audio formats in ccaudio even without matching codecs, and
>> then add them to the sdp negotiation code in Bayonne.
>>
> 
> 
> ------------------------------------------------------------------------
> 
> [driver.conf]
> encoding = mulaw
> 
> 09:00:15.836927 IP pstnGateway.sip > bayonneSvr.sip: UDP, length: 1079
> E..S..@.=..iW.H.W.D4.....?N.INVITE sip:33177359800@bayonneSvr:5060 SIP/2.0
> Record-Route: <sip:pstnGateway;ftag=00808260003A00044CF700000FD7;lr=on>
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bK45c7.d63c19f1.0
> Via: SIP/2.0/UDP SIPexpress:5060;branch=z9hG4bK00808260003A00044CF700000430
> From: <sip:33322220585@SIPexpress>;tag=00808260003A00044CF700000FD7
> To: <sip:33177359800@pstnGateway>
> Call-ID: 00808260003A00044CF7000026F4@SIPexpress
> CSeq: 19299 INVITE
> Contact: <sip:33322220585@SIPexpress:5060>
> Max-Forwards: 16
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, INFO
> Content-Type: application/sdp
> Supported: 100rel
> User-Agent: TELES.iSWITCH
> Content-Length:   406
> 
> v=0
> o=- 1028184700007462 1 IN IP4 SIPexpress
> s=-
> c=IN IP4 87.240.72.199
> t=0 0
> m=audio 4010 RTP/AVP 18 18 8 0
> a=rtpmap:18 G729/8000
> a=ptime:20
> a=rtpmap:18 G729A/8000
> a=ptime:20
> a=rtpmap:8 PCMA/8000
> a=ptime:20
> a=rtpmap:0 PCMU/8000
> a=ptime:20
> a=sendrecv
> m=image 4012 udptl t38
> a=T38FaxVersion:0
> a=T38MaxBitRate:14400
> a=T38FaxUdpEC:t38UDPRedundancy
> a=T38FaxRateManagement:transferredTCF
> 
> 09:00:15.837335 IP bayonneSvr.sip > pstnGateway.sip: UDP, length: 459
> E.....@[email protected].......>.SIP/2.0 100 Trying
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bK45c7.d63c19f1.0
> Via: SIP/2.0/UDP SIPexpress:5060;branch=z9hG4bK00808260003A00044CF700000430
> From: <sip:33322220585@SIPexpress>;tag=00808260003A00044CF700000FD7
> To: <sip:33177359800@pstnGateway>
> Call-ID: 00808260003A00044CF7000026F4@SIPexpress
> CSeq: 19299 INVITE
> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO, REFER, UPDATE
> Content-Length: 0
> 
> 
> 
> 09:00:15.837415 IP bayonneSvr.sip > pstnGateway.sip: UDP, length: 609
> E..}..@[email protected]>.SIP/2.0 101 Dialog Establishement
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bK45c7.d63c19f1.0
> Via: SIP/2.0/UDP SIPexpress:5060;branch=z9hG4bK00808260003A00044CF700000430
> Record-Route: <sip:pstnGateway;ftag=00808260003A00044CF700000FD7;lr=on>
> From: <sip:33322220585@SIPexpress>;tag=00808260003A00044CF700000FD7
> To: <sip:33177359800@pstnGateway>;tag=1191167549
> Call-ID: 00808260003A00044CF7000026F4@SIPexpress
> CSeq: 19299 INVITE
> Contact: <sip:33177359800@bayonneSvr:5060>
> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO, REFER, UPDATE
> Content-Length: 0
> 
> 09:00:15.838013 IP bayonneSvr.sip > pstnGateway.sip: UDP, length: 490
> E.....@[email protected].......>$SIP/2.0 415 Unsupported Media Type
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bK45c7.d63c19f1.0
> Via: SIP/2.0/UDP SIPexpress:5060;branch=z9hG4bK00808260003A00044CF700000430
> From: <sip:33322220585@SIPexpress>;tag=00808260003A00044CF700000FD7
> To: <sip:33177359800@pstnGateway>;tag=1191167549
> Call-ID: 00808260003A00044CF7000026F4@SIPexpress
> CSeq: 19299 INVITE
> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO, REFER, UPDATE
> Content-Length: 0
> 
> 
> 09:00:15.839616 IP pstnGateway.sip > bayonneSvr.sip: UDP, length: 379
> E.....@.=..&W.H.W.D4.......9ACK sip:33177359800@bayonneSvr:5060 SIP/2.0
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bK45c7.d63c19f1.0
> From: <sip:33322220585@SIPexpress>;tag=00808260003A00044CF700000FD7
> Call-ID: 00808260003A00044CF7000026F4@SIPexpress
> To: <sip:33177359800@pstnGateway>;tag=1191167549
> CSeq: 19299 ACK
> User-Agent: Sip EXpress router(0.9.6 (i386/linux))
> Content-Length: 0
> 
> 
> 
> bayonne log, debug level
> 
> Apr  4 08:59:01 ptg2 bayonne: starting 1.2.1 on i686 Linux; timeslots=8
> Apr  4 08:59:01 ptg2 bayonne: libexec starting; path=/usr/local/share/bayonne/libexec
> Apr  4 08:59:01 ptg2 bayonne: loading french translator
> Apr  4 08:59:01 ptg2 bayonne: sip/0: session starting
> [...]
> Apr  4 08:59:01 ptg2 bayonne: sip/7: session starting
> Apr  4 08:59:01 ptg2 bayonne[28137]: sip: adding sdp encoding 0 PCMU/8000
> Apr  4 08:59:01 ptg2 bayonne[28137]: sip: bound to port 5060
> Apr  4 08:59:01 ptg2 bayonne[28137]: sip msgport starting
> Apr  4 08:59:02 ptg2 bayonne[28137]: binding ivrscript...
> Apr  4 08:59:02 ptg2 bayonne[28137]: compiled definitions::audiostrip; 10 steps
> Apr  4 08:59:02 ptg2 bayonne[28137]: compiler scanning /usr/local/share/bayonne/ivrscript1
> Apr  4 08:59:02 ptg2 bayonne[28137]: compiler scanning /usr/local/share/bayonne/scripts
> Apr  4 08:59:02 ptg2 bayonne[28137]: register 33177359800 as askus01 on sip:pstnGateway
> Apr  4 08:59:02 ptg2 bayonne[28137]: compiled 33177359800::idemp; 13 steps
> [...]
> Apr  4 08:59:02 ptg2 bayonne[28137]: compiled 33177359800; 10 steps
> Apr  4 08:59:02 ptg2 bayonne[28137]: 3 scripts compiled
> Apr  4 08:59:02 ptg2 bayonne[28137]: driver(s) started; 8 timeslot(s) used
> Apr  4 08:59:02 ptg2 bayonne[28137]: tcpmon service started
> Apr  4 08:59:02 ptg2 bayonne[28137]: sip: event 0002; cid=0, did=0, rid=1
> Apr  4 08:59:02 ptg2 bayonne[28137]: sip: event 0001; cid=0, did=0, rid=1
> Apr  4 08:59:02 ptg2 bayonne[28137]: registration for sip:33177359800@bayonneSvr:5060 confirmed
> Apr  4 09:00:15 ptg2 bayonne[28137]: sip: event 0005; cid=1, did=2, rid=0
> Apr  4 09:00:15 ptg2 bayonne[28137]: sip: event 0019; cid=1, did=-1, rid=0
> Apr  4 09:00:15 ptg2 bayonne[28137]: sip: got bye for non-existant call
> 
> 
> 
> 
> 
> 
> 
> 
> 
> [driver.conf]
> encoding = alaw
> 
> 09:01:24.473477 IP pstnGateway.sip > bayonneSvr.sip: UDP, length: 1078
> E..R..@.=..jW.H.W.D4.....>..INVITE sip:33177359800@bayonneSvr:5060 SIP/2.0
> Record-Route: <sip:pstnGateway;ftag=00808260003A0005590C000024AB;lr=on>
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bKfa66.c366ad13.0
> Via: SIP/2.0/UDP SIPexpress:5060;branch=z9hG4bK00808260003A0005590C00001939
> From: <sip:33322220585@SIPexpress>;tag=00808260003A0005590C000024AB
> To: <sip:33177359800@pstnGateway>
> Call-ID: 00808260003A0005590C00000B44@SIPexpress
> CSeq: 2876 INVITE
> Contact: <sip:33322220585@SIPexpress:5060>
> Max-Forwards: 16
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, INFO
> Content-Type: application/sdp
> Supported: 100rel
> User-Agent: TELES.iSWITCH
> Content-Length:   406
> 
> v=0
> o=- 1035047600009190 1 IN IP4 SIPexpress
> s=-
> c=IN IP4 87.240.72.199
> t=0 0
> m=audio 5210 RTP/AVP 18 18 8 0
> a=rtpmap:18 G729/8000
> a=ptime:20
> a=rtpmap:18 G729A/8000
> a=ptime:20
> a=rtpmap:8 PCMA/8000
> a=ptime:20
> a=rtpmap:0 PCMU/8000
> a=ptime:20
> a=sendrecv
> m=image 5212 udptl t38
> a=T38FaxVersion:0
> a=T38MaxBitRate:14400
> a=T38FaxUdpEC:t38UDPRedundancy
> a=T38FaxRateManagement:transferredTCF
> 
> 09:01:24.473832 IP bayonneSvr.sip > pstnGateway.sip: UDP, length: 458
> E.....@[email protected].......>.SIP/2.0 100 Trying
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bKfa66.c366ad13.0
> Via: SIP/2.0/UDP SIPexpress:5060;branch=z9hG4bK00808260003A0005590C00001939
> From: <sip:33322220585@SIPexpress>;tag=00808260003A0005590C000024AB
> To: <sip:33177359800@pstnGateway>
> Call-ID: 00808260003A0005590C00000B44@SIPexpress
> CSeq: 2876 INVITE
> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO, REFER, UPDATE
> Content-Length: 0
> 
> 
> 09:01:24.473909 IP bayonneSvr.sip > pstnGateway.sip: UDP, length: 607
> E..{..@[email protected]>.SIP/2.0 101 Dialog Establishement
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bKfa66.c366ad13.0
> Via: SIP/2.0/UDP SIPexpress:5060;branch=z9hG4bK00808260003A0005590C00001939
> Record-Route: <sip:pstnGateway;ftag=00808260003A0005590C000024AB;lr=on>
> From: <sip:33322220585@SIPexpress>;tag=00808260003A0005590C000024AB
> To: <sip:33177359800@pstnGateway>;tag=368577037
> Call-ID: 00808260003A0005590C00000B44@SIPexpress
> CSeq: 2876 INVITE
> Contact: <sip:33177359800@bayonneSvr:5060>
> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO, REFER, UPDATE
> Content-Length: 0
> 
> 
> 
> 09:01:24.474484 IP bayonneSvr.sip > pstnGateway.sip: UDP, length: 488
> E.....@[email protected].......>"SIP/2.0 415 Unsupported Media Type
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bKfa66.c366ad13.0
> Via: SIP/2.0/UDP SIPexpress:5060;branch=z9hG4bK00808260003A0005590C00001939
> From: <sip:33322220585@SIPexpress>;tag=00808260003A0005590C000024AB
> To: <sip:33177359800@pstnGateway>;tag=368577037
> Call-ID: 00808260003A0005590C00000B44@SIPexpress
> CSeq: 2876 INVITE
> Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, MESSAGE, INFO, REFER, UPDATE
> Content-Length: 0
> 
> 09:01:24.476576 IP pstnGateway.sip > bayonneSvr.sip: UDP, length: 377
> E.....@.=..(W.H.W.D4........ACK sip:33177359800@bayonneSvr:5060 SIP/2.0
> Via: SIP/2.0/UDP pstnGateway;branch=z9hG4bKfa66.c366ad13.0
> From: <sip:33322220585@SIPexpress>;tag=00808260003A0005590C000024AB
> Call-ID: 00808260003A0005590C00000B44@SIPexpress
> To: <sip:33177359800@pstnGateway>;tag=368577037
> CSeq: 2876 ACK
> User-Agent: Sip EXpress router(0.9.6 (i386/linux))
> Content-Length: 0
> 
> 
> bayonne log, debug level
> 
> Apr  4 09:01:16 ptg2 bayonne: starting 1.2.1 on i686 Linux; timeslots=8
> Apr  4 09:01:16 ptg2 bayonne: libexec starting; path=/usr/local/share/bayonne/libexec
> Apr  4 09:01:16 ptg2 bayonne: loading french translator
> Apr  4 09:01:16 ptg2 bayonne: sip/0: session starting
> [...]
> Apr  4 09:01:16 ptg2 bayonne: sip/7: session starting
> Apr  4 09:01:16 ptg2 bayonne[28160]: sip: adding sdp encoding 8 PCMA/8000
> Apr  4 09:01:16 ptg2 bayonne[28160]: sip: bound to port 5060
> Apr  4 09:01:16 ptg2 bayonne[28160]: sip msgport starting
> Apr  4 09:01:16 ptg2 bayonne[28160]: binding ivrscript...
> Apr  4 09:01:16 ptg2 bayonne[28160]: compiled definitions::audiostrip; 10 steps
> Apr  4 09:01:16 ptg2 bayonne[28160]: compiler scanning /usr/local/share/bayonne/ivrscript1
> Apr  4 09:01:16 ptg2 bayonne[28160]: compiler scanning /usr/local/share/bayonne/scripts
> Apr  4 09:01:16 ptg2 bayonne[28160]: register 33177359800 as askus01 on sip:pstnGateway
> Apr  4 09:01:16 ptg2 bayonne[28160]: compiled 33177359800::idemp; 13 steps
> [...]
> Apr  4 09:01:16 ptg2 bayonne[28160]: compiled 33177359800; 10 steps
> Apr  4 09:01:16 ptg2 bayonne[28160]: 3 scripts compiled
> Apr  4 09:01:16 ptg2 bayonne[28160]: driver(s) started; 8 timeslot(s) used
> Apr  4 09:01:16 ptg2 bayonne[28160]: tcpmon service started
> Apr  4 09:01:16 ptg2 bayonne[28160]: sip: event 0002; cid=0, did=0, rid=1
> Apr  4 09:01:16 ptg2 bayonne[28160]: sip: event 0001; cid=0, did=0, rid=1
> Apr  4 09:01:16 ptg2 bayonne[28160]: registration for sip:33177359800@bayonneSvr:5060 confirmed
> Apr  4 09:01:24 ptg2 bayonne[28160]: sip: event 0005; cid=1, did=2, rid=0
> Apr  4 09:01:24 ptg2 bayonne[28160]: sip: event 0019; cid=1, did=-1, rid=0
> Apr  4 09:01:24 ptg2 bayonne[28160]: sip: got bye for non-existant call
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bayonne-devel mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/bayonne-devel

_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel