I'm a beginner at openser.
What does the variable 'af' stand for?And what is the value of the optional?
Thanks!
313 # Comment out three lines below if you want 314 # RTP for IPv4->IPv4 calls to go directly 315 # between UAs 316 if (af == inet) { 317 force_rtp_proxy("faii"); 318 t_on_reply("1"); 319 } 320 # proxy session from a Internal IPv4 321 # phone to a External IPv6 address 322 if (af == inet6) { 323 force_rtp_proxy("faie"); 324 t_on_reply("1"); 325 } 326 } 327 328 else if (lookup("location_inet6")) { 329 # proxy session from a External IPv6 330 # phone to a Internal IPv4 address 331 if (af == inet) { 332 force_rtp_proxy("faei"); 333 t_on_reply("1"); 334 } 335 336 # Comment out three lines below if you want 337 # RTP for IPv6->IPv6 calls to go directly 338 # between UAs 339 if (af == inet6) { 340 force_rtp_proxy("faee"); 341 t_on_reply("1"); 342 }
Hi,
Am Donnerstag 10 Juli 2008 13:24:43 schrieb 苗杰:
[...] 313 # Comment out three lines below if you want 314 # RTP for IPv4->IPv4 calls to go directly 315 # between UAs 316 if (af == inet) { 317 force_rtp_proxy("faii"); 318 t_on_reply("1"); [...] What does the variable 'af' stand for?And what is the value of the optional?
af stands for 'address family' (in case of openser: of the received SIP message). Please take a look at http://www.openser.org/dokuwiki/doku.php/core-cookbook:devel to get an explanation of the possible parameters.
Regards,
Carsten