Yes this scenario works on my 2 systems which are at LAN. I made one system as server (192.168.0.20) and registered from other system... it is fine but now there is a different scene.<br><br>actually there is a registered user named abc at system1 (192.168.0.20) having context [payasyougo] which is used to do outbound calls. we want to use this user's context and account so that when we register this account on our other system (192.168.0.254) call should be dropped into the context of abc which is [payasyougo].<br>
<br>now this works fine on above mentioned systems, and calling from system (192.168.0.254) like this<br><br>SIP/${EXTEN}@abc<br><br>sends call to the abc's context [payasyougo] and from there system1 (192.168.0.20) takes charge of dialing out the number in ${EXTEN}.<br>
<br>but when i change system 1 (192.168.0.20) to my real server (e.g. <a href="http://nasir.server.com">nasir.server.com</a>) which has abc as user configured same as on system1 (192.168.0.20), call goes to [default] instead of going to [payasyougo] context and is treated as incoming call...<br>
<br>when we use register string calls works ok on real server too. I also tried <br><br>SIP/abc:mysecret/${EXTEN} and <br>SIP/${EXTEN}@abc:mysecret<br><br>but nothing seems to work.<br><br>there is another problem that sometime my real server (<a href="http://nasir.server.com">nasir.server.com</a>) becomes unreachable and this error is returned<br>
<br> NOTICE[3898]: chan_sip.c:11489 sip_reg_timeout: -- Registration for '<a href="mailto:abc@nasir.server.com">abc@nasir.server.com</a>' timed out, trying again (Attempt #38)<br><br>It may be a simple problem but is driving my crazy... please help me out<br>
<br>thanks in advance<br><br>Nasir Javaid<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Message: 6<br>
Date: Tue, 11 May 2010 13:57:23 +0500<br>
From: Nasir Javaid <<a href="mailto:nasirjavaidnasir@gmail.com">nasirjavaidnasir@gmail.com</a>><br>
Subject: Re: [asterisk-users] asterisk-users Digest, Vol 70, Issue 23<br>
To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
Message-ID:<br>
<<a href="mailto:AANLkTim3qsPCY0sY3hanDxtTg8HPbXJEmj7HWZSknO1W@mail.gmail.com">AANLkTim3qsPCY0sY3hanDxtTg8HPbXJEmj7HWZSknO1W@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Thanks Vardan,<br>
<br>
I will like to know if this scenario can work when peer is not having fixed<br>
ip and we use<br>
host = <a href="http://nasir.server.com" target="_blank">nasir.server.com</a><br>
?<br>
also I have set insecure=invite,port<br>
<br>
what if i use<br>
insecure=no<br>
<br>
thanks again.<br>
<br>
Message: 24<br>
Date: Tue, 11 May 2010 10:52:14 +0500<br>
From: Vardan <<a href="mailto:hvardan71@gmail.com">hvardan71@gmail.com</a>><br>
Subject: Re: [asterisk-users] Dialing a SIP Peer without using<br>
register strin<br>
To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
Message-ID: <hsarab$ok7$<a href="mailto:1@dough.gmane.org">1@dough.gmane.org</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Remove username and secret and use IP authentication on both side<br>
<br>
[server1_abc]<br>
type=peer<br>
host=192.168.0.20<br>
context=default<br>
dtmfmode=rfc2833<br>
canreinvite=yes - canreinvite with nat=yes is not working<br>
insecure=invite,port<br>
disallow=all<br>
allow=ulaw<br>
allow=alaw<br>
allow=g729<br>
allow=gsm<br>
nat=yes<br>
qualify=yes<br>
<br>
<br>
<br>
[server2_abc]<br>
type=peer<br>
host=192.168.0.21<br>
context=default<br>
dtmfmode=rfc2833<br>
canreinvite=yes<br>
insecure=invite,port<br>
disallow=all<br>
allow=ulaw<br>
allow=alaw<br>
allow=g729<br>
allow=gsm<br>
nat=yes<br>
qualify=yes<br>
<br>
<br>
<br>
Nasir Javaid wrote:<br>
> Hi,<br>
><br>
> I am new to this list and this is first time i m posting here. please<br>
> help me out<br>
><br>
> currently I am working on dialing a sip peer on an asterisk server from<br>
> 2nd asterisk server. scenario is like this.<br>
><br>
> on my system i am using this peer in sip.conf.<br>
><br>
> [abc]<br>
> type=peer<br>
> username=abc<br>
> secret=mysecret<br>
> host=192.168.0.20<br>
> context=default<br>
> dtmfmode=rfc2833<br>
> ;restrictcid=no<br>
> canreinvite=yes<br>
> insecure=invite,port<br>
> disallow=all<br>
> allow=ulaw<br>
> allow=alaw<br>
> allow=g729<br>
> allow=gsm<br>
> nat=yes<br>
> qualify=yes<br>
><br>
> and using following register string<br>
><br>
> register => <a href="mailto:abc%3Amysecret@192.168.0.20">abc:mysecret@192.168.0.20</a> <<a href="mailto:abc%253Amysecret@192.168.0.20">abc%3Amysecret@192.168.0.20</a>><mailto:<br>
<a href="mailto:abc%253Amysecret@192.168.0.20">abc%3Amysecret@192.168.0.20</a> <<a href="mailto:abc%25253Amysecret@192.168.0.20">abc%253Amysecret@192.168.0.20</a>>><br>
><br>
><br>
> now problem is that when i use register string everything goes ok. but<br>
> when i remove register string call doesn't go as expected.<br>
><br>
> I would like to know if there is any feature that i can use to call sip<br>
> peer and authenticate is in dial command or some feature in sip.conf<br>
><br>
> i dont wanna use register string. please help.<br>
><br>
> regards,<br>
><br>
> Nasir Javaid<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.digium.com/pipermail/asterisk-users/attachments/20100511/02cd86d4/attachment-0001.htm" target="_blank">http://lists.digium.com/pipermail/asterisk-users/attachments/20100511/02cd86d4/attachment-0001.htm</a><br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Tue, 11 M</blockquote></div><br>