Hi, I've a stupid SIP PBX (Alcatel) which after registering sends a periodic OPTIONS with no RURI username and with "Accept: application/sdp". My proxy replies 200 in this case, but without SDP body (how could I know which codecs to show???) and unfortunately the Alcatel does not like it and send retransmissions of the requests (sad but true). After a while Alcatel determines that the proxy is down (pathetic but true).
So I must do a hack and reply 200 with SDP from Kamailio when the request is an OPTIONS and contains "Accept: application/sdp". I don't want to forward the OPTIONS to PSTN gateways behind Kamailio for different reasons.
Which would be the best way to do it? is it possible to add a spoofed body to a response replied stateless from Kamailio? Note: options_reply() in siputils module is not valid as AFAIK it does not show a SDP.
Thanks a lot.
2011/7/12 Iñaki Baz Castillo ibc@aliax.net:
So I must do a hack and reply 200 with SDP from Kamailio when the request is an OPTIONS and contains "Accept: application/sdp". I don't want to forward the OPTIONS to PSTN gateways behind Kamailio for different reasons.
Which would be the best way to do it? is it possible to add a spoofed body to a response replied stateless from Kamailio? Note: options_reply() in siputils module is not valid as AFAIK it does not show a SDP.
I missed set_body(txt,content_type) from textops module :)
But, is it possible to add such body to a response sent stateless? I expect that it would add the body to the processed request.
2011/7/12 Iñaki Baz Castillo ibc@aliax.net:
I missed set_body(txt,content_type) from textops module :)
But, is it possible to add such body to a response sent stateless? I expect that it would add the body to the processed request.
Oh, please, forget me forever. Just a few lines below "set_body()" there is:
set_reply_body(txt,content_type)
Hi Iñaki,
which kind of Alcatel PBX it is? I use OPTIONS with and without SDP in 200 without problems since several years with Alcatel OmniPCX Enterprise systems.
regards, Andreas
Am 12.07.2011 15:37, schrieb Iñaki Baz Castillo:
Hi, I've a stupid SIP PBX (Alcatel) which after registering sends a periodic OPTIONS with no RURI username and with "Accept: application/sdp". My proxy replies 200 in this case, but without SDP body (how could I know which codecs to show???) and unfortunately the Alcatel does not like it and send retransmissions of the requests (sad but true). After a while Alcatel determines that the proxy is down (pathetic but true).
So I must do a hack and reply 200 with SDP from Kamailio when the request is an OPTIONS and contains "Accept: application/sdp". I don't want to forward the OPTIONS to PSTN gateways behind Kamailio for different reasons.
Which would be the best way to do it? is it possible to add a spoofed body to a response replied stateless from Kamailio? Note: options_reply() in siputils module is not valid as AFAIK it does not show a SDP.
Thanks a lot.
2011/7/24 Andreas Heise aheise@gmx.de:
which kind of Alcatel PBX it is? I use OPTIONS with and without SDP in 200 without problems since several years with Alcatel OmniPCX Enterprise systems.
It's strange as we also work with other Alcatel OXE and OXO with no problems. In this exact case, the PBX performs SIP registration and later sends periodic OPTIONS with "Accept: application/sdp". Since the 200 is replied by my proxy Kamailio, it has no SDP (of course) and the Alcatel PBX ignores the reply and sends retransmissionts until it decides that "the proxy is down".
If you need I could try to get the exact PBX model (and firmware).
this is not a problem of missing SDP in your replies, there was a bug in OXE sipmotor when registration and options supervision are managed for the same gateway.
If needed I could provide more details by pm as it's OT for the Kamailio community.
regards, Andreas
Am 24.07.2011 21:27, schrieb Iñaki Baz Castillo:
2011/7/24 Andreas Heiseaheise@gmx.de:
which kind of Alcatel PBX it is? I use OPTIONS with and without SDP in 200 without problems since several years with Alcatel OmniPCX Enterprise systems.
It's strange as we also work with other Alcatel OXE and OXO with no problems. In this exact case, the PBX performs SIP registration and later sends periodic OPTIONS with "Accept: application/sdp". Since the 200 is replied by my proxy Kamailio, it has no SDP (of course) and the Alcatel PBX ignores the reply and sends retransmissionts until it decides that "the proxy is down".
If you need I could try to get the exact PBX model (and firmware).
2011/7/24 Andreas Heise aheise@gmx.de:
this is not a problem of missing SDP in your replies, there was a bug in OXE sipmotor when registration and options supervision are managed for the same gateway.
Great to know. It was really strange the "need" of receiving a 200 OK with SDP for a monitorization OPTIONS.
If needed I could provide more details by pm as it's OT for the Kamailio community.
I would really appreciate it. Could you please send me (to my mail) some info about such bug in the OXE? it's exactly what I need.
Thanks a lot.