+ if (gsm->conf.debug[0])
+ debug_parse_category_mask(gsm->conf.debug);
+
+ /* open pcap file */
+ if (gsm->conf.pcapfile[0]) {
+ if (gsm->conf.pcapfile[0] == '/')
+ SCPY(filename, gsm->conf.pcapfile);
+ else
+ SPRINT(filename, "%s/%s", CONFIG_DATA, gsm->conf.pcapfile);
+ pcapfd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, mode);
+ if (pcapfd < 0) {
+ PERROR("Failed to open file for pcap\n");
+ return gsm_exit(-1);
+ }
+ e1_set_pcap_fd(pcapfd);
+ }
+
+ /* set reject cause */
+ if (gsm->conf.reject_cause)
+ gsm0408_set_reject_cause(gsm->conf.reject_cause);
+
+ /* use RTP proxy for audio streaming */
+ if (gsm->conf.rtp_proxy)
+ ipacc_rtp_direct = 0;