Iax trunk inbound and outbound

Is there a configuration example for using IAX trunk for both inbound and outbound.
i have a Les.net account outbound works fine but inbound is a problem.

can any one help. here are the log files

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
Timestamp: 00018ms SCall: 11905 DCall: 00000 [64.61.93.90:4569]
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: PONG
Timestamp: 00018ms SCall: 01457 DCall: 11905 [64.61.93.90:4569]
Tx-Frame Retry[-01] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00018ms SCall: 11905 DCall: 01457 [64.61.93.90:4569]

Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00011ms SCall: 00138 DCall: 00000 [64.34.181.47:4569]
VERSION : 2
CALLED NUMBER : 9543747712
CODEC_PREFS : (ulaw)
CALLING NUMBER : 19547441857
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : NOT FOUND
LANGUAGE : en
FORMAT : 4
CAPABILITY : 63492
ADSICPE : 2
DATE TIME : 2008-09-10 12:41:14

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REJECT
Timestamp: 00006ms SCall: 07553 DCall: 00138 [64.34.181.47:4569]
CAUSE : No such context/extension
CAUSE CODE : 3

Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00006ms SCall: 00138 DCall: 07553 [64.34.181.47:4569]

can you post your iax connection info. make the ip and password stuff generic.

That will make it easier.

trunk

host=did.voip.les.net
type=peer
insecure=very
nat=yes
canreinvite=no
fromuser=1**********
username=1*********
secret=1234

user
type=user
context=from-trunk
insecure=very
nat=yes
canreinvite=no

thank you for the response

Try This.

Trunk Name: Trunk

host=did.voip.les.net
context=from-trunk
type=friend
username=1************
fromuser=1*************
sendrpid=yes
qualify=yes
canreinvite=no
insecure=port,invite
secret=1234

User Context : user

type=peer
host=did.voip.les.net
qualify=yes
canreinvite=no
context=from-trunk

Then make sure you have the proper registration string.

This works for me.

Rob

1***********:[email protected]

VoipJet/11336 208.72.186.69 (S) 255.255.255.255 4569 Unmonitored
Voicepulse03/Ne 64.61.93.90 (S) 255.255.255.255 4569 OK (50 ms)
JVoipjet******** 208.72.186.69 (S) 255.255.255.255 4569 Unmonitored
from-trunk 64.34.181.47 (S) 255.255.255.255 4569 OK (65 ms)
1************** 64.34.181.47 (S) 255.255.255.255 4569 OK (50 ms)
5 iax2 peers [3 online, 0 offline, 2 unmonitored]

iax show register

64.34.181.47:4569 1************** ***.***.***.***:4569 60 Registered

still no inbound calls.

thank you

did you “Allow Anonymous Inbound SIP Calls?” You will find the setting for this in the general setting. you need to enable this when accepting sip connections from the outside.

I was doing an IAX connection both inbound and outbound. is there any relevance? to be on the safe side i did and still not working.

I don’t think you need to allow the anonymous sip connections if you are using IAX. I know with my carrier the host name had to be changed from the standard name they provide. I was given a name of sipgw.carrier.com and it should have been iaxgq.carrier.com.

Are you behind a firewall? do you have port 4569 open in both directions?

Do you have an inbound route for the calls?

Do you see the call come in on your logs?

I am behind a firewall, i have port 4569 open both ways. when i do an iax debug on an incoming call
i see these messages come up

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REJECT
Timestamp: 00006ms SCall: 07553 DCall: 00138 [64.34.181.47:4569]
CAUSE : No such context/extension
CAUSE CODE : 3

I am concerned with No such context/extention— i am guessing it means that the call is coming in on a context that is not defined in the extensions file. am i correct?

thanks

i was reading the extensions.conf file in the external section i only see a section from-sip external. Should there be a from iax external as well?

I’m no expert but I dont think so. it should be coming into from-trunk. Do you have an inbound route setup for the connection?

thank you problem solved

What solved the problem.

i deleted and recreated the trunks. and all the calls started to flow.