How, direct trunk incoming calls to a Ring Group?

midiabyte

Joined
Aug 31, 2009
Messages
58
Likes
0
Points
0
#1
Can anyone explain how I can route all incoming external calls to a specific trunk to a specific ring group?

For example:
All incoming calls Trunk 1, for the Ring group 600;
All incoming calls Trunk 2 to the Ring group 601;
All calls entratntes Trunk 3, for the Ring group 602;

and so on.

However, there is no use DID or CID.

Example

If the client connects to the trunk 1, the group should ring 600. If he calls for the trunk 2, the group should ring 601. If he calls for the trunk 3, will play the group 602, and so on.

There as "hold" the contexts in relation to extensions or groups?

For example:
Trunk 1 [instala2100_in], direct calls to the group 600
Trunk 2 [instala1500_in], direct calls to the group 601
Trunk 3 [instala9909_in], direct calls to the group 602

and so on.

Will I clarified? Sorry for my poor English!
 

fraggle4

Joined
Apr 22, 2009
Messages
98
Likes
0
Points
0
#2
Use Zap Channel DID for this. Give the zap channel that the trunk is connected to a DID number, for example 1234567. Then go to Inbound Routes and make a route using DID number 1234567. You can now set the destination to anywhere you want. You have to edit chan_dahdi.conf so the trunk(s) context is from-zaptel, not from-pstn.
 

midiabyte

Joined
Aug 31, 2009
Messages
58
Likes
0
Points
0
#3
fraggle4, How can I use ZAP channel, if I do not have any FXS card connected? All trunks are SIP.

Is there a way to create SIP trunks like ZAP?

Thank's
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#4

emersoninocente

Joined
Mar 20, 2009
Messages
22
Likes
0
Points
0
#5

midiabyte

Joined
Aug 31, 2009
Messages
58
Likes
0
Points
0
#6
Emerson, thankyou for your attention!

However, the problem is this: We don't have any FXS card attached! All the trunks, are SIP. How to identify each Trunk as a Channel. Do you understand my problem!?

How to make alterations via console to force "all calls" from trunk 1, go to the group 600;
"all calls" from trunk 2, go to the group 601, and so on...

Thank's
 

midiabyte

Joined
Aug 31, 2009
Messages
58
Likes
0
Points
0
#7
In message above, where you read FXS, please, consider FXO!

Thank's!
 

emersoninocente

Joined
Mar 20, 2009
Messages
22
Likes
0
Points
0
#8
Re:How, direct trunk incoming calls to a Ring Grou

Midiabyte


1) Each SIP trunk was created with an ID, if not know, go to the server via ssh and check the log asterisk when receiving calls in each SIP trunk;

2) Create context for each incoming call in SIP trunk previously identified to be routed where you want;

3) In the configuration of SIP trunks change the context each trunk in the context created on
previously;


Emerson Inocente
 

midiabyte

Joined
Aug 31, 2009
Messages
58
Likes
0
Points
0
#9
Re:How, direct trunk incoming calls to a Ring Grou

Emerson, i don't have big experience with asterisk. I see in the log, and i have this information, on three last lines.

However, this "mountain" of letters and numbers, I can not identify what is the ID of the trunk. Can you help me?

"","80000","2001","disc-ext-local","""81212232426582"" <80000>","SIP/80000-093a27c0","SIP/suportembyte-093b1ac8","Dial","SIP/suportembyte||tTwW","2009-09-06 00:56:07","2009-09-06 00:56:14","2009-09-06 00:56:23",16,9,"ANSWERED","DOCUMENTATION"

"","1340629200","2100","disc-ext-local","""8196339633"" <1340629200>","SIP/luciofs-093bdfa0","SIP/jessica2100-093dc168","Dial","SIP/jessica2100||tTwW","2009-09-06 01:10:39","2009-09-06 01:11:08","2009-09-06 01:11:23",44,15,"ANSWERED","DOCUMENTATION"

"","1340629200","2100","disc-ext-local","""8196339633"" <1340629200>","SIP/luciofs-099d4910","SIP/jessica2100-099c71e8","Dial","SIP/jessica2100||tTwW","2009-09-06 01:25:32",,"2009-09-06 01:25:59",27,0,"NO ANSWER","DOCUMENTATION"

thank's
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#10
Re:How, direct trunk incoming calls to a Ring Grou

log in to your server (via ssh or localy).
enter the asterisk cli by typing: asterisk -rvvv

now have someone calling you on the first trunk.

Look at the output. You will see exactly how the trunk is presenting itself.
Show us the first ten lines of these inbound calls for each trunk.
What you see in the cli is also saved in the log called: /var/log/asterisk/full


Also please show us the setup of your trunks (mask the password).


With these information we will be able to help you setting it up properly (it could be very easy if your provider is presenting the right information, or will need two or three lines modifications for a stupid provider).

But right now with what you gave us, I am not sure that what we are telling you is enough to answer properly.
 

emersoninocente

Joined
Mar 20, 2009
Messages
22
Likes
0
Points
0
#11
Re:How, direct trunk incoming calls to a Ring Grou

Midiabyte

As mentioned in previous post.

1) Access the server via ssh (better option because you can cut the logs, using ssh client of your choice)
2) Go to the asterisk cli using "rasterisk"
3) Execute call to each of the SIP trunks that you have configured the server (ideal that the phone you use for calls not be configured in asterisk)
4) Post the logs in the forum, along with the configuration files of sip trunks (may be the graphical interface), but remember to protect passwords or smudge.

So it will be easier to help. If you can open as an option in the forum post in www.elastixbrasil.com.br and transcribe here.

Emerson Inocente
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,913
Messages
130,917
Members
17,589
Latest member
cristian.saiz
Top