you add your openser and asterisk ip's in trusted tables and then start openser again.

On 10/26/07, Max Lock < max.lock@gingo.co.uk> wrote:

  Hi Folks,

  I hope someone can help. I'm using openser 1.1.1-notls with
mediaproxy, an asterisk  PSTN gateway, an asterisk voicemail/features
server and a trixbox (asterisk) client. I'm also very new to openser
which doesn't help :)

  I've setup the openser database with subscribers,domains,aliases, and
gateways etc.

mysql> select * from dbaliases;
| alias_username | alias_domain | username | domain

| nnnnnn2099 | lhc-asterisk-pstn.yyy.com | lhc-trixbox1 |
lhc-openser.yyy.com

  then I generated an openser.cfg file using the sip:wise sipwizard tool
a copy is here http://pastebin.com/m46ba88d2

  My asterisk PSTN gateway (nnn.nnn.nnn.190) is able to pass inbound
calls to openser (nnn.nnn.nnn.189), which should then pass them onto
trixbox(nnn.nnn.nnn.187). however the calls are failing. On the PSTN
gateway I get the following...

     -- Accepting call from 'nnnnnnn1275' to 'nnnnnnn2099' on channel
0/1, span 1
     -- Executing Dial("Zap/1-1",
"SIP/nnnnnnn2099@lhc-openser.isrighthere.com |30|tTr") in new stack
     -- Called nnnnnnn2099@lhc-openser.isrighthere.com
Oct 26 15:22:05 NOTICE[10325]: chan_sip.c:9822 handle_response_invite:
Failed to authenticate on INVITE to '"nnnnnnn1275"
<sip:nnnnnnn1275@nnn.nnn.nnn.190>;tag=as37c13b61'
     -- SIP/lhc-openser.isrighthere.com-0074cce0 is circuit-busy
   == Everyone is busy/congested at this time (1:0/1/0)
     -- Executing Hangup("Zap/1-1", "") in new stack
   == Spawn extension (from-pstn, nnnnnnn2099, 2) exited non-zero on
'Zap/1-1'
     -- Hungup 'Zap/1-1'
lhc-asterisk-pstn*CLI>

in the Openser log I get the following (full log in
http://pastebin.com/m46ba88d2 ):
Oct 26 15:22:05 lhc-openser /usr/sbin/openser[24693]: route[12] Request
leaving server, D-URI='' - M=INVITE RURI=sip:s@nnn.nnn.nnn.187
F= sip:nnnnnnn1275@nnn.nnn.nnn.190 T=sip:nnnnnnn2099@lhc-openser.yyy.com
IP=nnn.nnn.nnn.190 ID= 182fb36c7aa5a14f5d31406b63671897@nnn.nnn.nnn.190
Oct 26 15:22:05 lhc-openser /usr/sbin/openser[24692]: onreply_route[1]
Reply - S=407 D=Proxy Authentication Required
F= sip:nnnnnnn1275@nnn.nnn.nnn.190 T=sip:nnnnnnn2099@lhc-openser.yyy.com
IP=nnn.nnn.nnn.187 ID= 182fb36c7aa5a14f5d31406b63671897@nnn.nnn.nnn.190

So is this is authentication error from openser or my trixbox client?
and if so whereabouts should I be looking?

  -Thanks in advance Max.

_______________________________________________
Serusers mailing list
Serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers