2013/1/10 MavHood <
alicem...@googlemail.com>:
> Hi,
> I have installed overSIP on ubuntu and using Open IMS Core as my server,
> which accepts requests on pcscf port 4060. So the request from tryit is
> received on oversIP and sent to the OSIMS on 5060. And the server responds
> with SIP/2.0 400 Bad Request - P-Visited-Network-ID header missing.
>
> I have read the documentation from the link above, but not sure how to use
> that, as i am fairly new to Ruby. Could you give more details how to use
> this method and where, or can i enter this on a configuration file. Thanks.
Open IMS Core is a IMS server so it has IMS requirements including the
presence of the P-Visited-Network-ID header. JsSIP and OverSIP are not
IMS aware (for now) so they won't include such a header.
Anyhow I don't know IMS but I expect that the P-Visited-Network-ID
must be added by the proxy (not sure). If that is the case (check the
IMS documentation) then you can add a header in OverSIP with the
"set_header()" method of OverSIP::SIP::Request class:
http://www.oversip.net/documentation/1.3.x/api/sip/message/