[asterisk-users] hox to connecte two asterisk server
Yuan LIU
yliu11 at hotmail.com
Fri Apr 6 22:09:05 MST 2007
>From: "hind habaoui" <habaoui.hind at gmail.com>
>Date: Fri, 6 Apr 2007 18:01:11 +0000
>
>hi lee.
>I see your problem with trunk iax, probably i don't have the solution but i
>don't knew if you can help me to solve mine.
Can't seem to see what the problem you have? Errors? Incorrect result?
(What is expected and what is the result?) Also, you need to clarify the
settings on two servers more clearly - your sip-calls context seems to
suggest that server B uses IAX with its users, but uses SIP to connect to
server A? The iax.conf seems to suggest SIP rather than IAX.
Yuan Liu
>i want to connecte two asterisk server: server A and server B. i want make
>possible calls betwen all asterisk users.: users in server A with sip
>number
>022100 can phone another sip user in server B with number 037100.
>this is my config:
>*************************************
>iax.conf for server A:
>**************************************
>register => serveur_rabat:rabat at 192.168.60.187
>
>[serveur_casa]
>type=peer
>host=dynamic
>username=serveur_casa
>secret=casa
>disallow=all
>allow=ulaw
>allow=gsm
>;context=sip-calls
>
>[serveur_casa]
>type=user
>host=dynamic
>username=serveur_casa
>secret=casa
>disallow=all
>allow=ulaw
>allow=gsm
>
>************************************************
> my extension.conf
>**************************************************
>[sip-calls]
>
>exten=>_022[1-8]XX,1,macro(Bienvenu)
>exten=>_022[1-8]XX,2,SetGlobalVar(BOITE=${CDR(src)})
>exten=>_022[1-8]XX,3,Dial(SIP/sip-${EXTEN},${TP_MAX_APPEL})
>exten=>_022[1-8]XX,4,macro(BoiteVocale,${BOITE})
>exten=>_022[1-8]XX,5,hangUp()
>;
>;
>;lecture des boites vocales
>exten=>_[1-8]XX,1,macro(lecture_boite)
>exten=>_[1-8]XX,2,PlaBack(vm-num-i-have)
>exten=>_[1-8]XX,3,HangUp()
>;
>;
>; on donne accès au service du standard
>exten=>022999,1,Wait(5)
>exten=>022999,2,Dial(${TEL1},,t)
>exten=>022999,3,HangUp()
>include=>parkedcalls
>include=>iax-calls
>[iax-calls]
>
>exten=>_037XXX,1,macro(Bienvenu)
>exten=>_037XXX,2,Dial(IAX2/serveur_rabat/${EXTEN},${TP_MAX_APPEL},r)
>exten=>_037XXX,3,macro(BoiteVocale)
>
>
>
>**********************************
>file config for the second server looks like the server's A file.
>
>
>
>thank you in advance
>
>hind
>GTR 2007
>_______________________________________________
>--Bandwidth and Colocation provided by Easynews.com --
>
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list