Hi I have a voip provider use sip. To telephones with exten. 201 and 202. My voip provider give me this numbers 33297540 and 33297545. Is it possible to get exten 201 to ring out on 33297540 and 202 -> 33297545 ? This is my config now : sip.conf: [general] context=default realm=olsen.com port=5060 bindaddr=0.0.0.0 srvlookup=yes ; fjern ";" fra f?lgende hvis Asterisk er bag NAT og har statisk IP: ;externip=1.2.3.4 ; erstat med din statiske IP adresse register =>33297540:nisse@voip.dk/33297540 register => 33297545:nisse@voip.dk/33297545 ; Voip [33297540] type=friend host=voip.dk dtmfmode=rfc2833 canreinvite=no username=33297540 secret=nisse context=voip_incoming nat=yes fromuser=33297540 fromdomain=voip.dk insecure=very [33297545] type=friend host=voip.dk dtmfmode=rfc2833 canreinvite=no username=33297545 secret=nisse context=voip_incoming nat=yes fromuser=33297545 fromdomain=voip.dk insecure=very ; SPA-2000 Line 1 [201] type=friend host=dynamic context=dialout username=201 secret=spapassword callerid="Thore" <201> nat= [202] type=friend host=dynamic context=dialout username=202 secret=spapassword callerid="Tom" <202> nat=no ; extensions.conf: [general] static=yes writeprotect=no [globals] [voip_outgoing] exten => _X.,1,Dial(Sip/voip/${EXTEN},120) exten => _X.,2,Congestion [dialout] include => voip_outgoing [voip_incoming] exten => 33297540,1,Dial(Sip/201,120) exten => 33297540,2,Congestion exten => 33297545,1,Dial(Sip/202,120) exten => 33297545,2,Congestion Thore -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050327/a1371e86/attachment.htm
Thore a ?crit :> Hi > > I have a voip provider use sip. To telephones with exten. 201 and 202. > > My voip provider give me this numbers 33297540 and 33297545. > > Is it possible to get exten 201 to ring out on 33297540 and 202 -> > 33297545 ? > > > > [...] > > > ; Voip > [33297540] > type=friend > host=voip.dk > dtmfmode=rfc2833 > canreinvite=no > username=33297540 > secret=nisse > context=voip_incoming >context=voip_incoming-phone1> nat=yes > fromuser=33297540 > fromdomain=voip.dk > insecure=very > > > > [33297545] > type=friend > host=voip.dk > dtmfmode=rfc2833 > canreinvite=no > username=33297545 > secret=nisse > context=voip_incoming >context=voip_incoming-phone2> nat=yes > fromuser=33297545 > fromdomain=voip.dk > insecure=very >[...]> [voip_incoming] > exten => 33297540,1,Dial(Sip/201,120) > exten => 33297540,2,Congestion > > exten => 33297545,1,Dial(Sip/202,120) > exten => 33297545,2,Congestion > > >[voip_incoming-phone1] exten => 33297540,1,Dial(Sip/201,120) exten => 33297540,2,Congestion [voip_incoming-phone2] exten => 33297545,1,Dial(Sip/202,120) exten => 33297545,2,Congestion -- Daniel
This work well for incoming calls, but not for outgoing call. Those i call get the wrong number in the display. Thore ----- Original Message ----- From: "administrator tootai" <admin@tootai.net> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Sunday, March 27, 2005 6:19 PM Subject: Re: [Asterisk-Users] sip provider> Thore a ?crit : > >> Hi >> >> I have a voip provider use sip. To telephones with exten. 201 and 202. >> >> My voip provider give me this numbers 33297540 and 33297545. >> >> Is it possible to get exten 201 to ring out on 33297540 and 202 -> >> 33297545 ? >> >> >> [...] >> >> >> ; Voip >> [33297540] >> type=friend >> host=voip.dk >> dtmfmode=rfc2833 >> canreinvite=no >> username=33297540 >> secret=nisse >> context=voip_incoming >> > context=voip_incoming-phone1 > >> nat=yes >> fromuser=33297540 >> fromdomain=voip.dk >> insecure=very >> >> >> [33297545] >> type=friend >> host=voip.dk >> dtmfmode=rfc2833 >> canreinvite=no >> username=33297545 >> secret=nisse >> context=voip_incoming >> > context=voip_incoming-phone2 > >> nat=yes >> fromuser=33297545 >> fromdomain=voip.dk >> insecure=very >> > [...] > >> [voip_incoming] >> exten => 33297540,1,Dial(Sip/201,120) >> exten => 33297540,2,Congestion >> >> exten => 33297545,1,Dial(Sip/202,120) >> exten => 33297545,2,Congestion >> >> > [voip_incoming-phone1] > exten => 33297540,1,Dial(Sip/201,120) > exten => 33297540,2,Congestion > > > [voip_incoming-phone2] > exten => 33297545,1,Dial(Sip/202,120) > exten => 33297545,2,Congestion > > -- > Daniel > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >