How to define dialing rules for outbound call

Hi All,

I am newbie in this trunk and dialing rule concept . I want to make international calls i a using ISTP from www.voip-proxy.com . in my freePBX how to set the dialing rules and trunk settings for connect other server . i am using following configuration in my freePBX:

For Peer :

secret=testsecret
username=testname
host= testhost
fromuser=localuser
fromdomain=mydomain
allow=alaw&ulaw
canreinvite=yes
context=from-trunk
dtmfmode=rfc2833
nat=yes
insecure=very

and dial rules i defined
000|NXXXXXXXXX
777791+NXXXXXXXXX

in outbound routes dial patterns i mentioned like :

000|NXXXXXXXXX
011.
777791+NXXXXXXXXX

i make a call from x-lite i am getting : all circuits are busy in this route

and :

rtp.c: Channel ‘’ has no RTP, not doing anything
app_dial.c: Exiting with DIALSTATUS=CONGESTION.

please help me to solve the issue thanks in advance.

regards,

gokul.,

Look in the documentation at http://www.freepbx.org/support/documentation - especially look through the How-Tos, I think there is one in there that explains routes and trunks - I have a feeling some of your rules/patterns might be wrong, or in the wrong place. Also, check your trunk registration string. Do a “sip show peers” from the CLI and see if your trunk shows as registered (should show an IP address in the Host column), then use “sip show registry” to verify that the host is registered.