Dear OpenSIPS users,
Every time a SIP UAC registers in my OpenSIPS, if such agent is behind a NAT,
the location record receives the NAT flag in the Cflags column. My Opensips
configuration file is responsible for that.
For example:
AOR:: 1000
Contact:: sip:[email protected]:59047;transport=TLS;ob Q=
Expires:: 298
Callid:: ec88647d89564d9b8cf112cb254d0f04
Cseq:: 34066
User-agent:: MicroSIP/3.11.0
Received:: sip:XXXXXXXXXXXX:59047;transport=TLS
State:: CS_SYNC
Flags:: 0
Cflags:: NAT <<=============== HERE IS THE NAT FLAG.
Now, if a SIP INVITE arrives in my OpenSIPS, from a UAC that is behind a NAT, I
need do something like this:
if (Cflags == NAT) {
fix_nated_sdp("10")
};
What is the correct way to investigate if Cflags is equals to NAT ? I mean, how
to program such check in the script file?
Any hint will be very helpful!
Best regards!
RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users