Re: [Asterisk-Users] sip.conf match
Thanks to every body for the solution. It works fine!! :D El Viernes, 1 de Abril de 2005 06:02, MF Hulber escribió: The way it works with my provider is that although both numbers enter the same context, each number will match its own extension. If I have two numbers: 11 and 22 it works as follows: [sip-in] exten = 11,1,Noop(First number dialed) exten = 22,1,Noop(Second number dialed) --- MARK. Pepe Aracil wrote: Hello. I have two hired pstn numbers with the same voip provider. I want to distingish in the sip.conf file, what of two phone numbers was dialed, but i don't know how to do the match, because the sip client and the sip host are the same for both numbers. How can i match in sip.conf by the (TO: ) header in sip negotiation? Sorry for my poor english :) Thanks. ___ 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 ___ 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 ___ 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
[Asterisk-Users] sip.conf match
Hello. I have two hired pstn numbers with the same voip provider. I want to distingish in the sip.conf file, what of two phone numbers was dialed, but i don't know how to do the match, because the sip client and the sip host are the same for both numbers. How can i match in sip.conf by the (TO: ) header in sip negotiation? Sorry for my poor english :) Thanks. ___ 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
Re: [Asterisk-Users] sip.conf match
Pepe Aracil wrote: How can i match in sip.conf by the (TO: ) header in sip negotiation? When you register with your provider, add /extension suffixes to the two register = lines, which will direct the incoming calls to different extensions in your incoming context. ___ 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
Re: [Asterisk-Users] sip.conf match
The way it works with my provider is that although both numbers enter the same context, each number will match its own extension. If I have two numbers: 11 and 22 it works as follows: [sip-in] exten = 11,1,Noop(First number dialed) exten = 22,1,Noop(Second number dialed) --- MARK. Pepe Aracil wrote: Hello. I have two hired pstn numbers with the same voip provider. I want to distingish in the sip.conf file, what of two phone numbers was dialed, but i don't know how to do the match, because the sip client and the sip host are the same for both numbers. How can i match in sip.conf by the (TO: ) header in sip negotiation? Sorry for my poor english :) Thanks. ___ 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 ___ 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
Re: [Asterisk-Users] sip.conf match
FWIW My ITSP sends all calls to *any* of my numbers to the extention of the first registered one. So even though I have: register = xx:[EMAIL PROTECTED]/exten1 register = yy:[EMAIL PROTECTED]/exten2 register = zz:[EMAIL PROTECTED]/exten3 calls to any of the numbers go to exten1. I checked (with ethereal) and saw that I was getting the numbers in the sip to header, so I setup a context just for these calls, and did something like : exten = in,1,SIPGetHeader(sip-to=To) exten = in,2,NoOp,${sip-to} exten = in,3,NoOp exten = in,4,NoOp,${sip-to:5:10} exten = in,5,gotoIf($[${sip-to:5:10} = xx]?10) exten = in,6,gotoIf($[${sip-to:5:10} = yy]?11) exten = in,7,gotoIf($[${sip-to:5:10} = xx]?12) exten = in,8,AGI(festival-script.pl|i am confused) exten = in,9,Hangup exten = in,10,Goto(context3,s,1) exten = in,11,Goto(context3,s,1) exten = in,12,Goto(context3,s,1); Register MF Hulber wrote: The way it works with my provider is that although both numbers enter the same context, each number will match its own extension. If I have two numbers: 11 and 22 it works as follows: [sip-in] exten = 11,1,Noop(First number dialed) exten = 22,1,Noop(Second number dialed) --- MARK. Pepe Aracil wrote: Hello. I have two hired pstn numbers with the same voip provider. I want to distingish in the sip.conf file, what of two phone numbers was dialed, but i don't know how to do the match, because the sip client and the sip host are the same for both numbers. How can i match in sip.conf by the (TO: ) header in sip negotiation? Sorry for my poor english :) Thanks. ___ 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 ___ 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 ___ 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