I have a proposed change to the vonageSniff.pl.
In testing the script at my house, the only phone I had to call in
with to test with was my cell phone. The number came through in the
SIP stream, but the caller's name did not. My telephone w/caller id
simply showed "OUTSIDE CALLER". The vonageSniff.pl script didn't
properly parse the From: line in this case.
The regex in the script is expecting a From: line in the following format:
From: "Caller's Name Here" <sip:#######@
...where ####### is the phone number.
Without the caller's name, my SIP stream looked like:
From: <sip:#######@
The existing regex is hardcoded to expect double-quotes, which don't
appear in my From stream.
I changed the regex in line 263 to:
if ($invite=~/From:\s*"?(.*)"?\s*<sip:(.*)@/) {
The ? makes the double-quote optional.
Script works!
Thanks for it,
Larry
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users