提交 2c5651e7 authored 作者: Mitch Capper's avatar Mitch Capper

Fixed ext-rtp-ip to not default to stun.freeswitch.org, made FSEvent use C++ get header func again

上级 3a6783b8
...@@ -10,12 +10,12 @@ namespace FSClient { ...@@ -10,12 +10,12 @@ namespace FSClient {
this.evt = evt; this.evt = evt;
} }
public string get_header(string name) { public string get_header(string name) {
//return freeswitch.switch_event_get_header(evt, name); //removed as for some reason its not swigging right for now... return freeswitch.switch_event_get_header_idx(evt, name, -1);
for (var x = evt.headers; x != null; x = x.next){ //for (var x = evt.headers; x != null; x = x.next){
if (name.ToLower() == x.name.ToLower()) // if (name.ToLower() == x.name.ToLower())
return x.value; // return x.value;
} //}
return null; //return null;
} }
public string body { get { return evt.body; } } public string body { get { return evt.body; } }
public int flags { get { return evt.flags; } } public int flags { get { return evt.flags; } }
......
...@@ -31,8 +31,8 @@ namespace FSClient { ...@@ -31,8 +31,8 @@ namespace FSClient {
/*Default*/ /*Default*/
new Field(Field.FIELD_TYPE.MultiItem,"Codec Preferences","codec-prefs","codec-prefs","CELT@48000h@10i,PCMU,PCMA,GSM","","CELT@32000h","CELT@48000h@10i","PCMA","PCMU","GSM","G722","G7221@16000h","G7221@32000h","AAL2-G726-16","AAL2-G726-24","AAL2-G726-32","AAL2-G726-40","BV16","BV32","DVI4@16000h@40i","DVI4@8000h@20i","G726-16","G726-24","G726-32","G726-40","L16","LPC","iLBC@30i","speex@16000h@20i","speex@32000h@20i","speex@8000h@20i"), new Field(Field.FIELD_TYPE.MultiItem,"Codec Preferences","codec-prefs","codec-prefs","CELT@48000h@10i,PCMU,PCMA,GSM","","CELT@32000h","CELT@48000h@10i","PCMA","PCMU","GSM","G722","G7221@16000h","G7221@32000h","AAL2-G726-16","AAL2-G726-24","AAL2-G726-32","AAL2-G726-40","BV16","BV32","DVI4@16000h@40i","DVI4@8000h@20i","G726-16","G726-24","G726-32","G726-40","L16","LPC","iLBC@30i","speex@16000h@20i","speex@32000h@20i","speex@8000h@20i"),
new Field(Field.FIELD_TYPE.Combo,"Inbound Codec Negotiation","inbound-codec-negotiation","inbound-codec-negotiation","generous","","generous","greedy","scrooge"), new Field(Field.FIELD_TYPE.Combo,"Inbound Codec Negotiation","inbound-codec-negotiation","inbound-codec-negotiation","generous","","generous","greedy","scrooge"),
new Field(Field.FIELD_TYPE.String,"External RTP IP","ext-rtp-ip","ext-rtp-ip","stun:stun.freeswitch.org",""), new Field(Field.FIELD_TYPE.String,"External RTP IP","ext-rtp-ip","ext-rtp-ip","auto-nat",""),
new Field(Field.FIELD_TYPE.String,"External SIP IP","ext-sip-ip","ext-sip-ip","stun:stun.freeswitch.org",""), new Field(Field.FIELD_TYPE.String,"External SIP IP","ext-sip-ip","ext-sip-ip","auto-nat",""),
new Field(Field.FIELD_TYPE.String,"RTP IP","rtp-ip","rtp-ip","auto",""), new Field(Field.FIELD_TYPE.String,"RTP IP","rtp-ip","rtp-ip","auto",""),
new Field(Field.FIELD_TYPE.String,"SIP IP","sip-ip","sip-ip","auto",""), new Field(Field.FIELD_TYPE.String,"SIP IP","sip-ip","sip-ip","auto",""),
new Field(Field.FIELD_TYPE.String,"Hold Music","hold-music","hold-music","local_stream://moh",""), new Field(Field.FIELD_TYPE.String,"Hold Music","hold-music","hold-music","local_stream://moh",""),
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论