Hi Alex,

thanks for your patch. Actually, i tried to move this item to 
[req|reply].content_type, to avoid everybody parsing this item each 
time, whereby it is already parsed. So i think that the correct fix 
would be that onSipRequest first checks it the content-type is set in 
the right field. If not, then it could parse the hdrs field as usual.

Unfortunatly, i noticed that the new field is far from being used 
everywhere... So we may need to check some more places where this should 
be also changed.

Cheers
Raphael.

Alex Gradinar wrote:
> Hi,
>
> I've found a bug in the latest trunk of sems.
> If DTMF is sent with SIP message INFO the sems doesn't corretly process SIP 
> message.
> Because in AmSession::onSipRequest it tries to get "Content-Type" header from 
> req.hdrs,
> but SipCtrlInterface doesn't add "Content-Type" header  to req.hdrs in 
> SipCtrlInterface::handle_sip_request.
>
> I've fixed it... see my path
>
> Best regards,
> Alex Gradinar
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Semsdev mailing list
> [email protected]
> http://lists.iptel.org/mailman/listinfo/semsdev
>   

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to