Closed GoogleCodeExporter closed 9 years ago
There are several lines that are split in the code you posted, and its
difficult for
us to tell if they are wrapped in your SIP Sorcery account. When viewing the
source
code for copying, always click "view raw file" in the lower right corner of the
source code viewer page. That is a much better page from which to copy the
code. Look
at your speed dials 677 and 732 for instance.
Syntax error is almost always caused by this.
Original comment by easter...@gmail.com
on 4 Apr 2010 at 5:54
Original comment by easter...@gmail.com
on 4 Apr 2010 at 5:57
could you provide me the correct code ?
Original comment by jiva...@gmail.com
on 4 Apr 2010 at 9:05
Actually, I can't. I thought you had copied the code from this site, but you
didn't.
It looks very similar to, but isn't, the ComplexDialPlan found elsewhere on this
site. If you want to keep the code you posted above, just look for the lines
that
were inadvertently split when you copied them from wherever you got them.
Original comment by easter...@gmail.com
on 5 Apr 2010 at 1:20
Don't forget that the "Syntax error" message contains line number, too. When
you're
looking for accidentally wrapped line of code, the line number helps a lot! ;-)
Original comment by mte...@gmail.com
on 5 Apr 2010 at 8:53
True, but also remember its the line of the *first* error. Once you find the
type of
error at that line, look at the rest of the script for similar errors. It will
save
you a ton of trouble vs troubleshooting one error at a time, assuming you are
experiencing line wrap errors.
Original comment by easter...@gmail.com
on 5 Apr 2010 at 8:57
I traced the call but didnt see any line number for syntex error. I have
attached
the code in file. Please have a look
Appreciate your help !
Original comment by jiva...@gmail.com
on 12 Apr 2010 at 6:29
SIP trace is absolutely useless. You need to go to Console, click on "Connect"
in there
and then try making a call. Select whatever output you get with your mouse and
click
Ctrl-C to copy. Then you can paste it into notepad, remove all sensitive
information
(like phone number, SIP account name etc) and post the result here.
Original comment by mte...@gmail.com
on 12 Apr 2010 at 7:50
I got the trace from the console and it says there is an error on line number
131.
could you help me in figuring out what is the error ? please see the attached
trace.
Original comment by jiva...@gmail.com
on 14 Apr 2010 at 4:34
Attachments:
Line #131 is this:
# this section to make the script portable to both G5 and sipgate users as
well
As you can see, it's a wrapping problem ("well" wrapped on a new line resulting
in
syntax error). I guess this is not the only place where wrapping occurred.
Original comment by mte...@gmail.com
on 14 Apr 2010 at 7:29
Closing due to inactivity. User was advised to make sure lines do not wrap when
copying and pasting dialplans.
Original comment by easter...@gmail.com
on 8 Feb 2011 at 2:30
Original issue reported on code.google.com by
jiva...@gmail.com
on 4 Apr 2010 at 5:30