Whenever I find myself repeating the same answer, I'm posting it here. If anyone has any contributions to this list, please msg me.
OpenSER Frequently Asked Questions
Q1. | Quote: |
| Can OpenSER REGISTER to another SIP provider, and route traffic from local users to the provider? |
A1. yes, in theory, but any provider that requires you to REGISTER with them, can be a little awkward to get working with openser. if a provider wants you to REGISTER to make calls, it expects a sip client to connect.. not a sip server like OpenSER. Furthermore you will likely be challenged when you send your INVITE's to them. There is a
UAC module for openser that allows you to get round some of this, but the approach is sub-optimal (the module has limitations).
If you plan on using this for any volume of traffic, and/or expect to have multiple providers set up in this way, you should implement a SIP Back-to-Back-User-Agent (B2BUA). Often Asterisk is given as an example of a B2BUA, but many other alternatives exist[/quote] Either that or lobby your provider to work with you as a peer, rather than a client
Q2. | Quote: |
| How can i see how OpenSER is processing all the SIP messages |
A2. You can use a command line tool like tcpdump, ngrep or tshark. These will allow you to specify protocols and ports, and will let you save the data to a file, filter the messages, or send them stdout (and much more besides). A typical command to view the messages as they arrive/leave is:
| Code: |
| ngrep -lqtt -W byline port 5060 |