Forum

 
  Forums  Server  Configuration -...  SIP Trunk to Asterisk
Previous Previous
 
Next Next
New Post 7/20/2007 12:10 PM
User is offline sceb
6 posts
10th Level Poster


SIP Trunk to Asterisk  (Germany)
Hi,

I have an Asterisk Server (1.2.10) which is used to connect our old Telephone System (via 2 S0s) to some Cisco Call Managers (via SIP) in other locations.
Now we have a test setup for Swyx and I would like to connect the two systems with a trunk.

What I want to achieve is that I can make calls between the HiPath and the Swyx using the Asterisk as Gateway. Both sides should be able to dial 85+extension and the swyx or the phone on the old system should ring.

I did the following on the Swyx Server:
- created a Trunk Group named SIP
- created a Trunk named SIP Asterisk
- in the Trunk settings, I have setup the needed parameters like User and password. Notthing else.
- In the Trunk Group Properties, I have selected profile 1und1 and changed all four settings to Transparent
- on the SIP tab, only checked "SIP Registrierung aktivieren" and entered the IP addresses. STUN is not activated, Proxy and REALM are empty
- on the forwarding tab, I added "85*" to forward everything to the SIP trunk

On the asterisk server I did the following:
- created a SIP user for the server
- created a rule in the extensions.conf that forwards everything coming from ISDN (the old system) beginning with 85 should be forwarded to the Swyx (the 85 is cut off)
- created a rule in the extensions.conf that forwards everything coming from Swyx (the old system) beginning with 85 should be forwarded to the old System (the 85 is cut off)

The swyx server registers fine with the asterisk server.

Two Problems:

When dialing 85123 on the old system, the Swyx answers with SIP code 404 (not found) although 123 is a known user on the swyx. Asterisk debugging info sais the swyx server is "curcuit-busy", "Everyone's busy/congested at this time".
Do I have to create a specific forwarding rule or something like that?

When dialing 85123 on the Swyx phone, nothing happens on the Asterisk. I don't even see packets being sent from the swyx server (Wireshark running on the server).
So it seems it is not using the sip trunk... Any idea why?

Thanks for any advice

sceb
 
New Post 7/23/2007 5:20 PM
User is offline sceb
6 posts
10th Level Poster


Re: SIP Trunk to Asterisk  (Germany)
Hm, no ideas anyone? No comments?

Maybe you can help me with debugging - is there a possibility to debug what Swyx does, like which Forwarding rule it follows? The problem that I can't see why it does what it does. Man this is a big pro for asterisk... just add some -v to the command line and it tells you everything it thinks...

thanks
 
New Post 7/23/2007 5:39 PM
User is offline Tom Wellige
821 posts
www.swyx.com
1st Level Poster








Re: SIP Trunk to Asterisk  (Germany)

 sceb wrote
The problem that I can't see why it does what it does. Man this is a big pro for asterisk... just add some -v to the command line and it tells you everything it thinks...

Obviously nobody has ever told you how chatty SwyxWare actually is in fact

To learn a little bit about the "trace" machnism of SwyxWare just take a look into the following two Knowledgebase articles:

Well, these articles don't tell you how to read the traces, this might be a little bit tricky when having a look on them the first time.

Unfortunately I can't help you with your SIP trunk problem. I have never tried to get Swyx and Asterisk together, but I know that there are quite a number of such configurations around.

Tom.


Tom Wellige
(Lead Solution Consultant, Swyx)

"It is a capital mistake to theorize before you have all the evidence. It biases the judgment."
Sir Arthur Conan Doyle - Sherlock Holmes - A Study in Scarlet

 
New Post 7/23/2007 7:11 PM
User is offline Morten Rokosz
793 posts
gui.this-is-voip.net
1st Level Poster








Re: SIP Trunk to Asterisk  (Norway)

 sceb wrote
Man this is a big pro for asterisk... just add some -v to the command line and it tells you everything it thinks...

Yes it *is*!! That is what I miss most about SwyxWare, that it does not have any tool too show a real-time trace. You need to open the tracefile in an text-editor and reload every now and then....


Morten Rokosz
(Swyx T.A.G Member)

Captain of the Golgafrinchan Ark Fleet Ship B

The best way to predict the future is to invent it.

 
New Post 7/24/2007 12:23 AM
User is offline Marcus
21 posts
8th Level Poster




Re: SIP Trunk to Asterisk  (Germany)

 morten.rokosz wrote [...] That is what I miss most about SwyxWare, that it does not have any tool too show a real-time trace. You need to open the tracefile in an text-editor and reload every now and then....

Hi Morton,

a nice tool for continuous observing log files is BareTailPro (http://www.baremetalsoft.com/baretail/). With some highlighting rules you got a colored SwyxWare log file.

Scrennshot BareTail highlighting

With this color schema hopfully you will not see many red lines .

Screenshot BareTail SwyxServer is starting

 
New Post 7/24/2007 12:29 AM
User is offline Tom Wellige
821 posts
www.swyx.com
1st Level Poster








Re: SIP Trunk to Asterisk  (Germany)

 morten.rokosz wrote
Yes it *is*!! That is what I miss most about SwyxWare, that it does not have any tool too show a real-time trace. You need to open the tracefile in an text-editor and reload every now and then....

You can also use the DebugView tool of Mark Russinovich (Sysinternals). SwyxWare writes all trace not only to the trace files but also to the standard debug port of Windows. DebugView attaches itself to this port and displays all trace output as "life stream".

Tom.


Tom Wellige
(Lead Solution Consultant, Swyx)

"It is a capital mistake to theorize before you have all the evidence. It biases the judgment."
Sir Arthur Conan Doyle - Sherlock Holmes - A Study in Scarlet

 
New Post 7/24/2007 8:55 AM
User is offline Morten Rokosz
793 posts
gui.this-is-voip.net
1st Level Poster








Re: SIP Trunk to Asterisk  (Norway)
Modified By Morten Rokosz  on 7/24/2007 7:56:31 AM)

Hey Tom. Thats great!!! This should have been included in the manual.....

Oh forgive me you lord of SwyxWare, for I have sinned . I went on the path of the evil one  and lost my faith . I thought that SwyxWare had a shortcoming . But surely Brother Tom did show me the way , so I will not be eternaly damned....

 


Morten Rokosz
(Swyx T.A.G Member)

Captain of the Golgafrinchan Ark Fleet Ship B

The best way to predict the future is to invent it.

 
New Post 7/24/2007 9:36 AM
User is offline Tom Wellige
821 posts
www.swyx.com
1st Level Poster








Re: SIP Trunk to Asterisk  (Germany)

 morten.rokosz wrote
Hey Tom. Thats great!!! This should have been included in the manual.....

But what would we tell the people in trainings if we give already all gadgets away in the manual ?

 morten.rokosz wrote
Oh forgive me you lord of SwyxWare, for I have sinned . I went on the path of the evil one  and lost my faith . I thought that SwyxWare had a shortcoming . But surely Brother Tom did show me the way , so I will not be eternaly damned....

*ROTFL*


Tom Wellige
(Lead Solution Consultant, Swyx)

"It is a capital mistake to theorize before you have all the evidence. It biases the judgment."
Sir Arthur Conan Doyle - Sherlock Holmes - A Study in Scarlet

 
New Post 7/24/2007 11:37 AM
User is offline anonymous
0 posts
No Ranking


Re: SIP Trunk to Asterisk  (Germany)

Moin,

Morten is definitely right. Why hide those features ? I think it's worth a KB-article "Did you know ?" or a FAQ here in this forum.

 
New Post 7/24/2007 12:03 PM
User is offline Tom Wellige
821 posts
www.swyx.com
1st Level Poster








Re: SIP Trunk to Asterisk  (Germany)

 SdB wrote
Morten is definitely right. Why hide those features ? I think it's worth a KB-article "Did you know ?" or a FAQ here in this forum.

You're right, that's what this forum is for ! And that's the reason why every user is allowed to write posting, blogs and wiki articles, upload files or even manage projects

I really don't see myself responsible to collect all kind of information and post them by myself, but instead see all user's in the responsibility.
Instead of saying "one should" you should say "I will" and just publish all your knowledge here. That's how communities work.

Tom.


Tom Wellige
(Lead Solution Consultant, Swyx)

"It is a capital mistake to theorize before you have all the evidence. It biases the judgment."
Sir Arthur Conan Doyle - Sherlock Holmes - A Study in Scarlet

 
New Post 7/24/2007 2:27 PM
User is offline Morten Rokosz
793 posts
gui.this-is-voip.net
1st Level Poster








Re: SIP Trunk to Asterisk  (Norway)
Modified By Morten Rokosz  on 7/24/2007 9:23:09 PM)

 
Instead of saying "one should" you should say "I will" and just publish all your knowledge here. That's how communities work.

'Ask not what your community can do for you, ask what you can do for your community'
- Native Swyxish Proverb


Morten Rokosz
(Swyx T.A.G Member)

Captain of the Golgafrinchan Ark Fleet Ship B

The best way to predict the future is to invent it.

 
New Post 7/24/2007 2:44 PM
User is offline Morten Rokosz
793 posts
gui.this-is-voip.net
1st Level Poster








Re: SIP Trunk to Asterisk  (Norway)
Modified By Morten Rokosz  on 7/24/2007 2:34:06 PM)

For all you people starting to use BareTail.

Download this file: http://www.this-is-voip.net/files/BareTail.udm (Right click on link and choose 'Save target as...')

Place it in the folder where you have the BareTail executable. When you run BareTail, the output will be colorcoded according to Marcus's example picture in his post.

You're welcome.....


Morten Rokosz
(Swyx T.A.G Member)

Captain of the Golgafrinchan Ark Fleet Ship B

The best way to predict the future is to invent it.

 
New Post 7/25/2007 10:40 AM
User is offline Martin
232 posts
3rd Level Poster






Re: SIP Trunk to Asterisk  (Germany)

 Tom Wellige wrote

You can also use the DebugView tool of Mark Russinovich (Sysinternals). SwyxWare writes all trace not only to the trace files but also to the standard debug port of Windows. DebugView attaches itself to this port and displays all trace output as "life stream".

SwyxWare only uses the standard debug output when no logfile is specified. It is either logfile or debug output, not both. I stopped using DebugView some time ago, because it seems to slow down the processes writing debug output. Logfiles + BaretailPro work much better for me.

BareMetalSoft has a freeware version of BareTail, too. It should be sufficient in most cases.


Martin Hüser
Team Lead, Server Development, Swyx
 
New Post 7/25/2007 11:24 AM
User is offline Jay
5 posts
www.eagle-communications.com
10th Level Poster




Re: SIP Trunk to Asterisk  (New Zealand)

Another tools is called mtail like the good old Unix command: http://ophilipp.free.fr/op_tail.htm. Basically you load the logfile (or drag'n'drop it) and it updates realtime the output and puts the numbers of lines you want in the scroll buffer.

(What was this German saying: Nicht verzagen Forum fragen )

 

cheers

Jay

 

 
New Post 7/25/2007 11:40 AM
User is offline Morten Rokosz
793 posts
gui.this-is-voip.net
1st Level Poster








Re: SIP Trunk to Asterisk  (Norway)

Hello Tom

You should  link to these tools in the Download section of this site. The topic is hot now, but after a couple of weeks this thread will be way down on the thread list and difficult to find. Make it a link and it will be easy to find....

 


Morten Rokosz
(Swyx T.A.G Member)

Captain of the Golgafrinchan Ark Fleet Ship B

The best way to predict the future is to invent it.

 
New Post 7/25/2007 3:27 PM
User is offline Beni
57 posts
www.cropmark.ch
5th Level Poster


Re: SIP Trunk to Asterisk  (Switzerland)

Since I'm having a good day, I allowed myself to upload those tools. But stry I'can't see them now, but that's most probably a cache issue.

 
New Post 7/25/2007 3:59 PM
User is offline Tom Wellige
821 posts
www.swyx.com
1st Level Poster








Re: SIP Trunk to Asterisk  (Germany)

 Beni wrote
Since I'm having a good day, I allowed myself to upload those tools. But strange I'can't see them now, but that's most probably a cache issue.

Your uploads needed just a little bit of moderation


Tom Wellige
(Lead Solution Consultant, Swyx)

"It is a capital mistake to theorize before you have all the evidence. It biases the judgment."
Sir Arthur Conan Doyle - Sherlock Holmes - A Study in Scarlet