[Asterisk-Users] how to connect ohphone & asterisk on the same box?

Antonio Diego Almodóvar Cebrián almodovarcebrian at yahoo.com
Tue Mar 9 05:18:28 MST 2004


Hello list
I'm trying to test my *'s h323 configuration and I
have only a box which is a h323 client and * server.
I've thinked that the better way is by IP
aliasing.Here is my "ifconfig" output:

############# IFCONFIG BEGINNING #########
Here is my "ifconfig" stdout:

eth0      Link encap:Ethernet  HWaddr
00:50:DA:3C:F9:CB  
          inet addr:172.16.200.75 
Bcast:172.16.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          RX packets:9537 errors:0 dropped:0
overruns:0 frame:0
          TX packets:698 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1190296 (1.1 MiB)  TX bytes:127595
(124.6 KiB)
          Interrupt:10 Base address:0xe800 

eth0:0    Link encap:Ethernet  HWaddr
00:50:DA:3C:F9:CB  
          inet addr:172.16.200.74 
Bcast:172.16.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500 
Metric:1
          Interrupt:10 Base address:0xe800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:111 errors:0 dropped:0 overruns:0
frame:0
          TX packets:111 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:22681 (22.1 KiB)  TX bytes:22681
(22.1 KiB)

############# IFCONFIG END #########

Then, my h323 client is IP:172.16.200.74 and my * is
IP:172.16.200.75. I run asterisk and there is no
problem. I run ohphone:

   # ohphone -v -n -i 172.16.200.74 -p 172.16.200.75\
     -u pruebas 111

Then * prints this error:

*CLI>   == New H.323 Connection created.
        -- Received SETUP message
    -- Setting up Call
    --     Call token:  [ip$172.16.200.75:1077/23591]
    --     Calling party name:  [pruebas]
    --     Calling party number:  []
    --     Called  party name:  [111]
    --     Called  party number:  [111]
Mar  9 13:14:07 ERROR[21525]: chan_h323.c:1044
setup_incoming_call: Call from user 'pruebas' rejected
due to non-matching IP address of '172.16.200.75'
        -- Call Failed
        -- Sending RELEASE COMPLETE
 -- Call with  ended abnormally
        == H.323 Connection deleted.

What's the problem?
If I make the call from "diego" user (another
computer) there is no problem.

Here are my configuration files:

+ h323.conf:

; ----- h323.conf beginning --------------------
[general]
port=1720
bindaddr=172.16.200.75
;bindaddr=0.0.0.0
;allow=gsm
allow=ulaw
;allow=alaw
;disallow=all
;tos=lowdelay

[pruebas]
type=friend
host=172.16.200.74
context=h323

[diego]
type=friend
host=172.16.60.14
context=h323
;------------------- h323.conf end ----------------


+extensions.conf

;---------- extensions.conf beginning ----------------
[globals]
TIMEOUT=12

[h323]
include => misc
;para llamar al diego marcar el 111
exten => 111,1,Dial(h323/diego at 172.16.60.14)
exten => 111,2,Hangup

;para llamar al pruebas llamar al 222
exten => 222,1,Dial(h323/pruebas at 172.16.200.74)
exten => 222,2,Hangup
;---------- extensions.conf end ----------------




_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com



More information about the asterisk-users mailing list