Page 1 of 1

Help on configuring two DID number on one IP

PostPosted: Fri Nov 16, 2007 10:09 am
by mindseeker
Hi,


Can anybody help me, how to configure 2 DID number to ring on 1 server? i manage to configure 1 DID number, but when i try to configure another DID number...it does not ring on my extension...here is my config:

[sip-incoming]
exten => 19235753113,1,Answer
exten => 19235753113,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 19235753113,3,Dial(SIP/9905,55,o)
exten => 19235753113,4,Hangup

///here is the second....but does not ring

[sip-incoming]
exten => 16622585621,1,Answer
exten => 16622585621,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 16622585621,3,Dial(SIP/9906,55,o)
exten => 16622585621,4,Hangup


is it my configuration correct? or in one server there is only one DID number to ring?

Re: Help on configuring two DID number on one IP

PostPosted: Fri Nov 16, 2007 10:39 am
by krondorl
mindseeker wrote:Hi,


Can anybody help me, how to configure 2 DID number to ring on 1 server? i manage to configure 1 DID number, but when i try to configure another DID number...it does not ring on my extension...here is my config:

[sip-incoming]
exten => 19235753113,1,Answer
exten => 19235753113,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 19235753113,3,Dial(SIP/9905,55,o)
exten => 19235753113,4,Hangup

///here is the second....but does not ring

[sip-incoming]
exten => 16622585621,1,Answer
exten => 16622585621,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 16622585621,3,Dial(SIP/9906,55,o)
exten => 16622585621,4,Hangup


is it my configuration correct? or in one server there is only one DID number to ring?


In truth, doing what you are asking is more an Asterisk question then a vicidial question, but as I have done this already for a few companies, this is not correct. Just make sure that you are registering to both DIDs and they point to DIFFERENT context names in your sip.conf or iax.conf depending on your DID connection type..

PostPosted: Fri Nov 16, 2007 10:47 am
by mindseeker
sorry for doing this,...but i really need this to establish, and there si no other person can help me...except this site, hope you understand....

PostPosted: Fri Nov 16, 2007 3:58 pm
by krondorl
mindseeker wrote:sorry for doing this,...but i really need this to establish, and there si no other person can help me...except this site, hope you understand....


ok, Change the name of the second [sip-incoming] to something else and point your sip registration that matches to that context. That's all..

PostPosted: Fri Nov 16, 2007 4:57 pm
by mindseeker
pardon me..could you pls rewrite my second code..it its okay to you..because im also a newbie., i dont really understandy where to change and what to chnge their :-(...


thanks in advance

PostPosted: Fri Nov 16, 2007 9:20 pm
by ramindia
Hi

you can not have Duplicate Context

old

[sip-incoming]

new

[sip-incoming1]


ram

PostPosted: Fri Nov 16, 2007 11:53 pm
by mindseeker
hi ram..thank you so much for your reply...ok i will do it..


thanks everyone

PostPosted: Sat Nov 17, 2007 1:18 am
by mindseeker
hi ram

i modified it already on my extensions.conf and it seems still the call does not arrived on my eyebeam sip 9906 :-( what could be my mistake?


thanks in advance........

PostPosted: Sat Nov 17, 2007 1:36 am
by mindseeker
hi ram


i solved my problem now...thanks...