<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
How can I seperate outgoing calls to the same ITSP but with a different DID ??<BR>
<BR>
I have defined a peer in sip.conf for the incoming calls that are routed to a certain [context]. Then in the dialplan this [context] send the incoming calls to the correct context based on the callerID that was send with the incoming call...<BR>
<BR>
But how can I send an outgoing call to the ITSP and seperate the outgoing DID's ???<BR>
<BR>
If I define the outgoing DID's [peer] in sip.conf as followed :<BR>
<BR>
; outgoing calls<BR>
[did1]<BR>
type=peer<BR>
host=sip.ITSP<BR>
username=user1<BR>
secret=passwd1<BR>
fromuser=user1<BR>
<BR>
[did2]<BR>
type=peer<BR>
host=sip.ITSP<BR>
username=user2<BR>
secret=passwd2<BR>
fromuser=user2<BR>
<BR>
then incoming calls are matched against these peer-definitions and I get the NOTICE<BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#0000ff">[Jan 29 18:49:07] NOTICE[6314]: chan_sip.c:14703 handle_request_invite: Call from 'did2' to extension "329990102" rejected because extension not found.</FONT></FONT><BR>
<BR>
<BR>
So how to create multiple outgoing peer definitions without having an incoming call be matched against these peers ????<BR>
<BR>
<BR>
Thank you !<BR>
<BR>
Jonas.<BR>
<BR>
<BR>
On Fri, 2010-01-29 at 16:51 +0000, Robert Lister wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Fri, 2010-01-29 at 15:09 +0100, jonas kellens wrote:
> Hello list !
>
> Having troubles with multiple registrations to one and the same ITSP.
>
> This sip.conf :
>
> register => user1:<A HREF="mailto:passwd1@sip.ITSP">passwd1@sip.ITSP</A>
> register => user2:<A HREF="mailto:passwd2@sip.ITSP">passwd2@sip.ITSP</A>
>
> ; outgoing conversations
> [user1-out]
> type=peer
> host=sip.ITSP
Try setting type=friend instead of peer for these and see what happens.
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>