Vicidial trunking with Elastix - Help

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Vicidial trunking with Elastix - Help

Postby sethpr » Tue Apr 27, 2010 2:26 pm

I have VicidialNow installed in one server, and Elastix in another.

Vicidial version is: 2.0.5-174 IP Address: 192.168.1.2
Elastix Version is: 1.5.2-2 IP Address: 192.168.1.3

The trunk is IAX2 as follows:

Vicidial:
Carrier Name: Elastix

Registration String: register=>vicidial1:secret@192.168.1.3:4569

Account Entry:
[elastix1]
host=dynamic
username=vicidial1
secret=secret
type=friend
disallow=all
allow=ulaw
allow=alaw
qualify=yes
context=from-internal

Protocol: IAX2

Dialplan Entry:
exten => _XXXXXXX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _XXXXXXX.,2,Dial(IAX2/elastix1/${EXTEN},,tTor)
exten => _XXXXXXX.,3,Hangup

ServerIP: 192.168.1.2


Elastix:
Trunk: vicidial1

Dial Rules:
XX.

Trunk Name: vicidial1

Peer Details:
host=192.168.1.2
type=friend
username=vicidial1
secret=secret
dissallow=all
allow=ulaw&alaw
qualify=yes
context=from-internal

Register String:
elastix1:secret@192.168.1.2


OUTBOUND ROUTE:
Route Name: ToVicidial
Intracompany Routing: (checked)
Dial Patterns:
8|XXX
8|XXXX
Trunk Secuence:
IAX2/vicidial1

-------------------------------------------------------------------------
Both servers register with each other.
Outbound calling from Vicidial to external numbers through Elastix work perfectly.
I cannot call extensions in Vicidial from Elastix (I dial 8101, the 8 is stripped by the route so I send a call to vicidial of 101). The vidial extensions are cc100-cc150, users are 100-150 (default for VicidialNow)

When I dial to call 101 from Elastix (8101) call gets passed to vicidial but it gets regected with message: chan_iax2.c:7242 socket_read: Rejected connect attempt from 192.168.1.3, who was trying to reach '101@'

Other problem: I do not know how to configure inbound route so I can pass incomming calls from elastix to vicidial inbound

I do not know how to configure dialing from vicidial extensions to elastix extensions.

Thanks for any help.
sethpr
 
Posts: 3
Joined: Tue Apr 27, 2010 1:58 pm

Postby omarrodriguezt » Wed Apr 28, 2010 7:34 am

In the elastix trunk you must add the "cc" in the outbound dial prefix text box.
Keep in mind that you are sending only 3 digits to vicidial, as we can see in your outbound route: 8|XXX , but vicidial extensions are 5 digits (ccXXX)

Another way how you can handle this is putting this dial plan entry:

; Phones direct dial extensions:
exten => _XXX,1,Dial(SIP/cc${EXTEN},20,to)

in your /ect/extensions.conf in the [trunkinbound] context.

Example:

[trunkinbound]
exten => _XXX,1,Dial(SIP/cc${EXTEN},20,to)

and you also must add this: context=trunkinbound to the account entry in vicidial instead: context= from-internal
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Postby sethpr » Wed Apr 28, 2010 1:58 pm

Hello, and thanks for your reply...

I did what you suggested so now I have in my extensions.conf the line
exten => _XXX,1,Dial(SIP/cc${EXTEN},20,to) right under the [trunkinbound] , and changed my account entry context to trunkinbound, and I reloaded but I am still getting

NOTICE[2468]: chan_iax2.c:7242 socket_read: Rejected connect attempt from 192.168.1.3, who was trying to reach '101@'

I cannot add cc as a prefix on Elastix as it only accepts numbers.

Also I would like to know how to pass a DID from the inbound route in Elastix to an inbound campain in vicidial.
sethpr
 
Posts: 3
Joined: Tue Apr 27, 2010 1:58 pm

Postby omarrodriguezt » Wed Apr 28, 2010 2:11 pm

For dial an extension from elastix to Vicibox:
Try the other way.
Modify the extensions.conf in the vicibox.

For the DID Inbound from Elastix to Vicidial Campaign:

If you already have set the inbound route in elastix, you could try to follow this step:

-Create a miscellaneous destination.
-In the inbound group, set the destination to the misc destination that you just created.
-Create on outbound route using the numbers that you put in the misc destination and send this calls thru the vicidial trunk
In the vicibox modify the /ect/asterisk/extensions.conf file and add the dial plan to the inbound trunk.

(In the vicidial manual you can find how to setup the inbound call in the dial plan )
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Postby sethpr » Wed Apr 28, 2010 4:59 pm

I did modify the extensions.conf in vicidial, I cannot try to add the cc in Elastix because freepbx does not allow letters in the prefix or dial rules.

Modifying the extensions.conf in vicidial did not work, I still get the same error.

For the inbound:
What should I use as a destination in the miscellaneous destination?
I did not understand what you said.

PS. I speak Spanish if it is easier for you... it IS easier for me.

Gracias!
sethpr
 
Posts: 3
Joined: Tue Apr 27, 2010 1:58 pm

Postby omarrodriguezt » Thu Apr 29, 2010 6:35 am

Spanish is my native language, but for respect to Matt, and also, in order to help other people with this forum we prefer English :)

Lets work with one situation at the time.
How to call to a Vicidial extension from vicibox if you already have the trunk set

-Go to the CLI in your Vicibox and make sure that you are able to see your incoming call from elastix. In the vicibox CLI put: sip debug (make sure that nobody is connected because it will display a lot of information)
-If you are able to see your incoming call, then make sure that your trunk (carrier) in vicibox contains the context (trunkinbound)
Example:
[elastix1]
host=dynamic ##here should be your elastix ip address 192.168.1.3
username=vicidial1
secret=secret
type=friend
disallow=all
allow=ulaw
allow=alaw
qualify=yes
context=trunkinbound

Put this information in the dial plan entry box:
exten => _XXX,1,Dial(SIP/cc${EXTEN},20,to)

-Then modify the file etc/asterisk/extensions.conf in the vicibox and make sure that the following line is in the trunkinbound context:
exten => _XXX,1,Dial(SIP/cc${EXTEN},20,to)
Example:

[trunkinbound]
exten => _XXX,1,Dial(SIP/cc${EXTEN},20,to)

If this dont work can you post here your configurations files?
Make sure that you delete the sensitive data like passwords and ip address.
You can post here from vicidial your extensions.conf and extensions-vicidial.conf and also sip.conf and sip-vicidial.conf
and the same files from elastix.
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 97 guests