drachtio / drachtio-srf

drachtio signaling resource framework
https://drachtio.org
MIT License
171 stars 60 forks source link

Dialog local URI is not valid in case of UAC #175

Open calvet27 opened 4 months ago

calvet27 commented 4 months ago

Hi, Support,

I found that dialog.local.uri is not matched UAC uri. We can create dialog via calling createUAC,

createUAC(uri, ...)

And in the dialog,

this.local = {
uri: 'uas' === type ? opts.sent.getParsedHeader('Contact')[0].uri :  this.req.uri,
...
}

this.req.uri is same with the first parameter of createUAC, So it is not local, it means remote, UAS.

Please fix this ASAP.