wtf incoming number format! "<sip:4e82c39f3194e7cdd668e569183224d5@91.211.140.178:5060>"

33 views
Skip to first unread message

stay-aw...@yandex.ru

unread,
Jul 19, 2015, 3:53:50 PM7/19/15
to si...@googlegroups.com
what is???     how get normal numbers ??
1111.png

stay-aw...@yandex.ru

unread,
Jul 23, 2015, 4:39:01 PM7/23/15
to SIPek, stay-aw...@yandex.ru
stupid solution... this working !

private string getIncomingNumber()
        {
            StreamReader sr = new StreamReader(File.Open("pjsip.log", FileMode.Open, FileAccess.Read, FileShare.ReadWrite));
            string gg = sr.ReadToEnd();
            sr.Close();


            string[] matches;

            matches = Regex.Matches(gg, "From: \"(.*?)\"", RegexOptions.IgnoreCase).Cast<Match>().Select(m => m.Groups[1].Value).ToArray();

            return matches[matches.Length - 1];
        }

stay-aw...@yandex.ru

unread,
Jul 23, 2015, 4:39:57 PM7/23/15
to SIPek, stay-aw...@yandex.ru
*when incoming call event
Reply all
Reply to author
Forward
0 new messages